Other than the double trailing space laknar expects after the 1st and 3rd occurrences of </RequestType> and the single trailing space laknar expects after the 2nd occurence of </RequestType>, the following seems to produce the expected output:
Hi All,
My requisite is to search for the string "0108"(which is the year and has come in the wrong year format) in a particular column say 4th column in a tab delimited file and then replace it with 2008(the correct year format) in the same position where 0108 was found..The issue is the last... (15 Replies)
Hi All,
My requisite is to search for the string "0108"(which is the year and has come in the wrong year format) in a particular column say 4th column in a tab delimited file and then replace it with 2008(the correct year format) in the same position where 0108 was found in the same file..The... (27 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)
What's the easiest way to search a file for a specific string and then look for other instances after that? I want to search for all Virtual Hosts and print out the Server Name and Document Root (if it has that info), while discarding the rest of the info.
Basically my file looks like this:
...... (6 Replies)
Hi
I am looking for a particular string in a file.If the string exists, then I want to replace another string with some other text.Once replaced, search for the same text after that character position in the file. :wall:
E.g: Actual File content:
Hello
Name: Nitin Raj
Welcome to Unix... (4 Replies)
Can someone tell me how I can do this?
e.g:
a=$(echo -e wert trewt ertert ertert ertert erttert
erterte
rterter
tertertert
ert)
How do i replace the STRING with $a?
I try this:
sed -i 's/STRING/'"$a"'/g' filename.ext
but this don' t work (2 Replies)
Need Assistance in shell programming... I have a huge file which has multiple stations and i wanted to search particular station and extract few lines from it and the rest is not needed
Bold letters are the stations . The whole file has multiple stations .
Below example i wanted to search... (4 Replies)
Hi Everyone,
I have a requirement in ksh where i have a set of files in a directory. I need to search each and every file if a particular string is present in the file, delete that line and replace that line with another string expression in the same file.
I am very new to unix. Kindly help... (10 Replies)
I have the below string which i need to compare with a file and replace this string in the file which matches closely. Can anyone help me on this.
string(Scenario 1)- user::r--,user::ourfrd:r--
String(Scenario 2)- user::r--
File
****
# file: /local/Desktop/myfile
# owner: me
# group:... (6 Replies)
Discussion started by: sarathy_a35
6 Replies
LEARN ABOUT HPUX
dtmmdbdlpgetprevsectionid
DtMmdbDlpGetPrevSectionId(library call) DtMmdbDlpGetPrevSectionId(library call)
NAME
DtMmdbDlpGetPrevSectionId -- obtains the object identifier of the previous section
SYNOPSIS
#include <DtMmdb.h>
DtMmdbHandle* DtMmdbDlpGetPrevSectionId(
DtMmdbInfoRequest* request);
DESCRIPTION
The DtMmdbDlpGetPrevSectionId function returns the object identifier of the previous section. You can use this function to traverse the TOC
hierarchy in a depth-first fashion.
Use the DtMmdbFreeHandleList function to release the memory when the object identifier is no longer needed. Table lookup is involved.
ARGUMENTS
request Specifies the bookcase in the bookcase descriptor field, as well as the id of the current section in the primary_oid field.
RETURN VALUE
If DtMmdbDlpGetPrevSectionId completes successfully, it returns a pointer to the object identifier for the previous section or DtMmdbGroun-
dId, if there is no previous section. If it fails, it returns a NULL pointer.
EXAMPLE
The following shows how a DtMmdbDlpGetPrevSectionId call might be coded.
DtMmdbInfoRequest request;
/* fill the request here */
DtMmdbHandle* x = DtMmdbDlpGetPrevSectionId(&request);
if ( x == DtMMdbGroundId) {
/* no previous section */
} else
{
if (x == 0) {
/* bad request */
}
else
{ /* make use of x */
}
SEE ALSO DtMmdbDlpGetNextSectionId(3)
DtMmdbDlpGetPrevSectionId(library call)