I wonder whether anyone here is an expert on GSAR or SED?
GSAR: I can’t get the @responsefile command to work, and the minimal documentation loses any mention of a “response file” between versions 1.20 and 1.21
SED: I can’t see how to add control characters (specifically CR and LF).
Let me describe the problem.
I have a text file which contains records of the form
[DoW, date, time] up to 40 characters of message text with a blank character at the end
real sample:
[Thu, 2008-06-12 13:37:53] – Log emailed [Thu, 2008-06-12 13:38:01] – Administrator logout – IP:192.168.11.2
BUT these are in one long string, without a carriage return/line feed pair after each training blank and before the [ character.
Effectively I wish to replace
” [Mon,” with “crlf[Mon,”
” [Tue,” with “crlf[Tue,”
” [Wed,” with “crlf[Wed,”
… down to
” [Sun,” with “crlf[Sun,”
where crlf represents the hex characters 0D0A, so that the text is split into lines starting each time with the [ character before the day-of-the-week abbreviation.
If I could get the response file to work, I would use GSAR, otherwise I would need to make seven passes, each processing a specific day-of-the-week.
I’ve looked at various SED tutorials, but can’t find how to do what I want.
Any ideas? Thanks
BATcher
Plethora means a lot to me.