in reply to Strange grep and matching behaviour...
Let the almighty grep take care of filtering all lines containing 'foobar' out. The match should do it just fine.sysopen (FILE,$filename,O_RDONLY) or die "Error! $!\n"; my (@slurp) = grep !/fubar/,<FILE>; close FILE;
This would only print:echo 'fubar\nfoo' | perl -e '@stuff=grep \!/fubar/, <STDIN>;print@stuf +f;'
and filter the 'foobar' line out! ;-)foo
$"=q;grep;;$,=q"grep";for(`find . -name ".saves*~"`){s;$/;;;/(.*-(\d+) +-.*)$/;$_=["ps -e -o pid | "," $2 | "," -v "," "]`@$_`?{print" ++ $1"}:{print"- $1"}&&`rm $1`;print"\n";}
|
|---|