http://www.perlmonks.org?node_id=732938


in reply to sed style file parse from command-line

On a related note a couple days ago I used the following to delete lines that matched a pattern from a file.
perl -n -i -e 'print unless (m/^.*line-to-remove$/)' fileA