> 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'?