04-01-2008
Just ordered from Amazon.com. Hope to enjoy reading this book.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Display all of the lines in a file that contain "Raspberry" followed later
in the line by the letter "a"
I tried: grep Raspberry*a filename
that didn't work
Anyone know a solution? (1 Reply)
Discussion started by: netmaster
1 Replies
2. Shell Programming and Scripting
Hi guys
I've been trying to write a regular expression.
If I'm tryin to validate a sequence of characters as follows...
AB1-232-623482-743 43/3
where
a) any character after the "AB" can be any alphanumeric character
b) the " 43/3" part is optional
is there a quick neat way for me... (5 Replies)
Discussion started by: djkane
5 Replies
3. Shell Programming and Scripting
could anybody tell me how i can add/append a new line using regular expression in vi on AIX?
i've tried several ways before, but all of them failed. e.g.
:%s/$/\n/
:%s/^/\v\r/
:( (1 Reply)
Discussion started by: wrl
1 Replies
4. Shell Programming and Scripting
Hello!
I'm working with AWK, and i have this code:
/<LOOP_TIME>/,/<\/LOOP_TIME>/
I want that match every everything between <LOOP_TIME> and </LOOP_TIME>, but not if the line have a "#" before the tags.
Someone can help me?
Thanks! (6 Replies)
Discussion started by: claw82
6 Replies
5. Shell Programming and Scripting
Hi,
I have script which will take a string as input and search in a file.
But when I want to search a pattern which has special characters script is ignoring it.
For example: I want to search a pattern "\.tumblr\.com". shell script is removing \ (backslah) and trying to search... (7 Replies)
Discussion started by: Anjan1
7 Replies
6. Shell Programming and Scripting
Witam, mam oto taki ciąg znaków:
8275610268 + 9012383215 =niepotrzebnytextPotrzebuję w bash'u wyciągnąć obie liczby (mają taką samą liczbę cyfr), zapisać je do osobnych zmiennych, ale coś nie idzie, kombinowałem z grepem, ale nie potrafię skleić tego wyrażenia regularnego, no i potem przypisać do... (7 Replies)
Discussion started by: menda90
7 Replies
7. Shell Programming and Scripting
Hello,
I would like to replace Line 187 of my file named run_example.
The original line is below, including the spaces:
celldm(1) = 6.00,
I want it to become something like
celldm(1) = 6.05,
or
celldm(1) = 6.10,
where the number is stored in a variable called... (6 Replies)
Discussion started by: bluesmodular
6 Replies
8. Shell Programming and Scripting
I have two input files (given below) and to compare each line of the File1 with each line of File2 starts with '>sample1'. If a match occurs and that matched line in the File2 contains another line or sequence of lines starting with "Chr" they have to be displayed in output file with that sample.... (8 Replies)
Discussion started by: hravisankar
8 Replies
9. Programming
Hi all,
How am I read a file, find the match regular expression and overwrite to the same files.
open DESTINATION_FILE, "<tmptravl.dat" or die "tmptravl.dat";
open NEW_DESTINATION_FILE, ">new_tmptravl.dat" or die "new_tmptravl.dat";
while (<DESTINATION_FILE>)
{
# print... (1 Reply)
Discussion started by: jessy83
1 Replies
10. Shell Programming and Scripting
Hi,
I have a file with two fields in it as shown below
14,30
28,30
16,30
22,30
21,30
3,30
Fields are separated by comma ",".
I've been trying to validate the file based on the condition "each field must be a numeric value"
I am using HP-UX OS.
I have tried the following awk... (4 Replies)
Discussion started by: meetsriharsha
4 Replies
LEARN ABOUT HPUX
dtmmdbbookgettocobjectid
DtMmdbBookGetTocObjectId(library call) DtMmdbBookGetTocObjectId(library call)
NAME
DtMmdbBookGetTocObjectId -- obtains the locator of a book's TOC section
SYNOPSIS
#include <DtMmdb.h>
DtMmdbHandle* DtMmdbBookGetTocObjectId(
DtMmdbInfoRequest* request);
DESCRIPTION
The DtMmdbBookGetTocObjectId function returns the object identifier of the specified book's TOC section. Use the DtMmdbFreeHandleList
function to release the memory when the object identifier is no longer needed. Table lookup is involved when the identifier is specified by
either the primary_oid or sequence_num field.
ARGUMENTS
request Specifies the bookcase in the bookcase descriptor field, as well as a valid value in the primary_oid, the secondary_oid, or the
sequence_num field. The primary_oid represents the DtInfo Database object identifier of the TOC section; the secondary_oid rep-
resents the object identifier of the book itself; and the sequence_num represents the sequence number of the book within the
bookcase (0 based). If more than one of these fields have a valid value, the order of precedence is: primary_oid, secondary_oid,
and, last, sequence_num.
RETURN VALUE
If DtMmdbBookGetTocObjectId completes successfully, it returns a pointer to the object identifier for the book's TOC section. If it fails,
it returns a NULL pointer.
EXAMPLE
The following shows how a DtMmdbBookGetTocObjectId call might be coded.
DtMmdbInfoRequest request;
request.bookcase_descriptor = DtMmdbGetBookCase(myInfoLibPtr, "myBase");
request.sequence_num = 1;
DtMmdbBookGetTocObjectId(&request);
SEE ALSO
TO BE SUPPLIED.
DtMmdbBookGetTocObjectId(library call)