From: Aherne Peter-pahern02 (peter.aherne at domain motorola.com)
Date: Wed 10 Jul 2002 - 15:51:08 IST
Hi All,
I'm wondering the easiest way to strip certain lines out of a file.
The file format would be something like:
/XXX/ CE 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00
/XXX/ CB 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00
/XXX/ CE 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00
Etc.
What I want to do is get any line starting with /XXX/ CE and remove
that line and the following one. I could just write a script for this
but I though one of you guys could come up with something a little
more elegant.
Cheers & Thanks,
Peter.
-- Peter Aherne, Software Engineer, Motorola Ireland Ltd. http://www.skynet.ie/~peter - peter at domain linux.ie Ph: +353 21 4511234 Mobile: +353 87 2246834
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:17:48 GMT