Hi All,
I have a file that I need to be able to find a pattern match on a line, search that line for a text pattern, and replace that text.
An example of 4 lines in my file is:
1. MatchText_randomNumberOfText moreData ReplaceMe moreData
2. MatchText_randomNumberOfText moreData moreData... (4 Replies)
Hi Guys,
I am trying to write a perl script to search a string "Name" in the file "FILE" and also want to create a new file and push the searched string Name line along with 10 lines following the same.
can anyone of you please let me know how to go about it ? (8 Replies)
I need to search the file using strings "Request Type" , " Request Method" , "Response Type" and by using result set find the xml tags and convert into a single line?. below are the scenarios.
Cat test
Nov 10, 2012 5:17:53 AM
INFO: Request Type
Line 1.... (5 Replies)
I am unable to use grep comman to Print only EmpPosition and if the EmpID next line. So output should be both EmpPosition and EmpID and also EmpPosition and EmpID data should match.
Sample Data
EmpPosition "New"
EmpID "New"
-
-
EmpPosition "New"
... (4 Replies)
I am having a text file which is having more than 200 lines.
EX:
001010122 12000 BIB 12000 11200 1200003
001010122 2000 AND 12000 11200 1200003
001010122 12000 KVB 12000 11200 1200003
In the above file i want to search for string KVB and add/replace... (1 Reply)
Dear All
I am having a text file which is having more than 200 lines.
EX:
001010122 12000 BIB 12000 11200 1200003
001010122 2000 AND 12000 11200 1200003
001010122 12000 KVB 12000 11200 1200003
In the above file i want to search for string KVB... (5 Replies)
Hi,
Need your help for this scripting issue I have. I am not really good at this, so seeking your help.
I have a file looking similar to this:
Hello, i am human and name=ABCD.
How are you?
Hello, i am human and name=PQRS.
I am good.
Hello, i am human and name=ABCD.
Good bye.
Hello, i... (12 Replies)
I want to search a small string in a large string and find the locations of the string. For this I used grep "string" -ob <file name where the large string is stored>. Now this gives me the locations of that string. Now how do I store these locations in a text file.
Please use CODE tags as... (7 Replies)
Lets say I have a massive directory which is filled with other directories all filled with different c++ scripts and I want a listing of all the scripts that contain the string: "this string". Is there a way to use a grep search for that? I tried:
grep -lr "this string" *
but I do not... (3 Replies)
Discussion started by: Circuits
3 Replies
LEARN ABOUT HPUX
dtmmdbbookgetlongtitle
DtMmdbBookGetLongTitle(library call) DtMmdbBookGetLongTitle(library call)
NAME
DtMmdbBookGetLongTitle -- obtains the long title of a book
SYNOPSIS
#include <DtMmdb.h>
const char* DtMmdbBookGetLongTitle(
DtMmdbInfoRequest* request,
unsigned int* length);
DESCRIPTION
The DtMmdbBookGetLongTitle function returns the long title of the specified book object. Do not use the free function on the returned
pointer. 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.
length Specifies the variable to receive the length of the returned long title, if the returned pointer to the title is not NULL.
RETURN VALUE
If DtMmdbBookGetLongTitle completes successfully, it returns a pointer to the book's long title. If it fails, it returns a NULL pointer.
EXAMPLE
None.
SEE ALSO DtMmdbBookGetShortTitle(3)
DtMmdbBookGetLongTitle(library call)