Brian Jackson wrote:
On Wednesday 07 February 2007 15:19, Jan Karjalainen wrote:
I'm trying to parse through a file and delete all the lines with the
word "LOG" on it, eg. replace it with "".

That's not the same thing as finding all lines with LOG.

perl -pi -e 's/LOG//' [filename]

(hey, wasn't this a thread last week?  :-D)

Wait, delete all lines with LOG or replace the string 'LOG' with ''? 2 different tasks.

brian

I found the expression:  .+LOG.+

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to