Mailinglist Archive: opensuse (2800 mails)

< Previous Next >
Re: [opensuse] Reg. expression
  • From: Brian Jackson <brian@xxxxxxxxxxxxxxxxxxxxx>
  • Date: Wed, 7 Feb 2007 15:21:39 -0800
  • Message-id: <200702071521.40847.brian@xxxxxxxxxxxxxxxxxxxxx>
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

--
Brian Jackson Photo
Sports ~ People ~ Events
http://www.BrianJacksonPhoto.com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups