Chad Kellerman wrote: > > I was wondering if there is a one liner that searches a file for a > string and then removes that line and the following four lines in the > file?
grep 'string' -A 4 yourfile.txt | grep -v -f - yourfile.txt :-) John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]