The output might be redirected to a file if needed.$ echo 'foo > bar > foobar > baz > foobar' | perl -ne 'print unless /^bar/;' foo foobar baz foobar
In reply to Re: How to remove a whole line if matches a keyword in a file.
by Laurent_R
in thread How to remove a whole line if matches a keyword in a file.
by Rahul2772
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |