Results 1 to 1 of 1
Hi,
I've got the following lines appearing in an output file and I need some data removed for sendmail formatting purposes assuming "sed" is up to the task.
Output lines ...
- 09-30-2010 #1Just Joined!
- Join Date
- Aug 2010
- Posts
- 4
SED wildcard substitute help needed
Hi,
I've got the following lines appearing in an output file and I need some data removed for sendmail formatting purposes assuming "sed" is up to the task.
Output lines below example:
ADMU0508I: The Application Server "WAS11" is STARTED
ADMU0507I: The Node Agent "nodeagent" is STARTED
ADMU0538I: The Application Server "WAS01" is STARTED
ADMU1508I: The Application Server "ANON01" is STARTED
I need to remove "ADM*: " including the colon from the beginning of any lines containing that string match. Keep in mind that there's other data here so I'm not looking to strip the first x number of chars per line.
Making the example above look like this.
The Application Server "WAS11" is STARTED
The Node Agent "nodeagent" is STARTED
The Application Server "WAS01" is STARTED
The Application Server "ANON01" is STARTED
Any help would be appreciated.
Thanks


Reply With Quote