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