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
In Section
Seekers of Perl Wisdom