> perl -ni -e 'next unless /foo/' myfile.txt
Actually, finally got this to work this way to remove all lines but those containing
foo:
perl -ni -e 'next unless /foo/; print;' myfile.txt
and this way for all those not containing foo:
perl -ni -e 'next if /foo/; print;' myfile.txt
--
Namaste,
Kristin
"Much as I hate to say it, the Computer Science view of language design
has gotten too inbred in recent years. The Computer Scientists should
pay more attention to the Linguists, who have a much better handle on
how people prefer to communicate."
--Larry Wall
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]