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)
I have a rather complicated search and replace I need to do among several dozen files and over a hundred occurrences. My site is written in PHP and throughout the old code, you will find things like
die("Operation Aborted due to.....");
For my new design skins for the site, I need to get... (2 Replies)
Hi,
I need help. I have XML file as below
<a n="infoLevel">
<v s="true"/>
</a>
<a n="localAddr">
<v s="server.host.com"/>
</a>
<a n="ListenPort">
<v s="21111"/>
</a>
I need to find variable "ListenPort" in line and then replace... (4 Replies)
Dear All,
i want to search particular string and want to replance next line value.
following is the test file.
search string is
tmp,???
,10:1 "???" may contain any 3 character it should remain the same and next line replace with ,10:50
tmp,123 --- if match tmp,??? then... (3 Replies)
Search and Replace a string pattern with empty in an xml file in unix:
My xml file would be like this :
<Accounts><Name>Harish</Name><mobile>90844444444444445999 </mobile><TRIG>srcujim-1</TRIG></Accounts><Accounts><Name>Satish</Name><mobile>908999</mobile><TRIG>ettertrtt-1</TRIG></Accounts>
... (1 Reply)
I have three variables $a, $b and $c
$a = file_abc_123.txt
$b = 123
$c = 100
I want to search if $b is present in $a. If it is present, then i want to replace that portion by $c.
Here $b = 123 is present in "file_abc_123.txt", so i need the output as "file_abc_100.txt'
How can this be... (3 Replies)
All, I appreciate any help you can offer here as this is well beyond my grasp of awk/sed...
I have an input file similar to:
&LOG
&LOG Part: "@DB/TC10000021855/--F"
&LOG
&LOG
&LOG Part: "@DB/TC10000021852/--F"
&LOG Cloning_Action: RETAIN
&LOG Part: "@DB/TCCP000010713/--A"
&LOG
&LOG... (5 Replies)
Discussion started by: KarmaPoliceT2
5 Replies
LEARN ABOUT HPUX
mailq
mailq(1) General Commands Manual mailq(1)NAME
mailq - prints the mail queue
SYNOPSIS DESCRIPTION
prints a summary of the mail messages queued for future delivery.
The first line printed for each message shows the internal identifier used on this host for the message, the size of the message in bytes,
the date and time the message was accepted into the queue, and the envelope sender of the message. The second line shows the error message
that caused this message to be retained in the queue; it will not be present if the message is being processed for the first time. The
status characters are:
to indicate that the job is being processed
to indicate that the load is too high to process the job
to indicate that the job is too new in the queue to process.
The output lines that follow the second line show the message recipients, one per line.
is identical to
Options
The supported options are:
Show the mail submission queue specified in the
file instead of the MTA queue specified in the file.
Show the lost items in the mail queue instead of normal queue items.
Show the quarantined items in the mail queue instead
of the normal queue items.
Limit processed jobs to those containing
substr as a substring of the queue ID or not when is specified.
Limit processed jobs to quarantined jobs containing
substr as a substring of the quarantine reason or not when is specified.
Limit processed jobs to those containing
substr as a substring of one of the recipients or not when is specified.
Limit processed jobs to those containing
substr as a substring of the sender or not when is specified.
Print verbose information.
This adds the priority of the message and a single character indicator or blank) indicating whether a warning message has
been sent on the first line of the message. In addition, extra lines may be intermixed with the recipients indicating the
`controlling user' information. This shows who owns the programs that are executed on behalf of this message and the name
of the alias this command expanded from, if any.
RETURN VALUE
The utility exits with 0 on success, and >0 if an error occurs.
AUTHOR
was developed by the University of California, Berkeley, and originally appeared in 4.0BSD.
FILES
mail queue files for
SEE ALSO sendmail(1M).
mailq(1)