[NCLUG] sed help ?

Gabriel L. Somlo somlo at acns.colostate.edu
Fri Feb 28 17:00:24 MST 2003


Hi !

The command

	cat foo | sed -e '/some pattern/d'  > bar

will delete all lines containing 'some pattern' from foo;

Do you guys know how I could delete the line containing 'some pattern'
*and the line immediately following it* (regardless of content) ?

Thanks,

Gabriel




More information about the NCLUG mailing list