http://qs1969.pair.com?node_id=540400


in reply to Re^2: Simple regexp question
in thread Simple regexp question

perl -pe "s/[#*]//g" infile > outfile
or in-place:
perl -i.bak -pe "s/[#*]//g" filename
If you want to delete the entire line, then
perl -pe "next if /[#*]/" infile > outfile
or in-place:
perl -i.bak -pe "next if /[#*]/" filename