help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Novice asks: How to remove lines from a txt file?


From: Thomas Ilnseher
Subject: Re: Novice asks: How to remove lines from a txt file?
Date: Sun, 29 Jul 2012 22:12:37 +0200

sed -i '/gum/d' file.txt

gum is a regexp here. You should at first run without -i to see what sed
is doing.

Am Sonntag, den 29.07.2012, 11:31 -0700 schrieb vilsu:
> 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
> 
> 
> 
> --
> View this message in context: 
> http://octave.1599824.n4.nabble.com/Novice-asks-How-to-remove-lines-from-a-txt-file-tp4631877.html
> Sent from the Octave - General mailing list archive at Nabble.com.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
> 
> 

-- 
Thomas Ilnseher <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]