[NCLUG] sed help ?

Matt Jibson dolmant at engr.colostate.edu
Fri Feb 28 17:29:30 MST 2003


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

Why not use egrep -v and search for something like 'some pattern\n[^\n]*\n'?



More information about the NCLUG mailing list