[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Sheflug] awk-ward problem
Hi Guys,
I'm pretty dumb with awk but I know some simple
one-liner should do what I want more elegantly
than the program I wrote to do it. I just need
to delete a recurring text block from a file.
The following:
awk '/Cannot connect/, /Graphics support/' testc.inp > testc.out
does exactly the opposite (ie keeps what I want to
throw away and throws away what I want to keep.)
I've tried various things with != in there but
I'm not getting it -- HELP!
Many thanks, Jan
--
***** Dr. Jan White ***************************
* Molecular Biology, Sheffield University *
* Phone: +44 114 222 2741 FAX: 272 8697 *
***** E-Mail: Jan.White [at] shef.ac.uk ************
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.