[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Novice asks: How to remove lines from a txt file?
From: |
Sergei Steshenko |
Subject: |
Re: Novice asks: How to remove lines from a txt file? |
Date: |
Sun, 29 Jul 2012 12:36:44 -0700 (PDT) |
----- Original Message -----
> From: vilsu <address@hidden>
> To: address@hidden
> Cc:
> Sent: Sunday, July 29, 2012 9:31 PM
> Subject: Novice asks: How to remove lines from a txt file?
>
> Hello!
>
> I have a txt file with a lot of lines in it.
>
> I need to remove the lines which have a certain combination of letters, say
> "gum".
> I know how to identyfy such lines, but how to remove the line altogether?
>
> Any suggestions and hints are welcome.
>
> vilsu
Read http://linux.die.net/man/1/grep , pay attention to '-v'.
It is _not_ an Octave question.
Regards,
Sergei.