or in-place:perl -pe "s/[#*]//g" infile > outfile
If you want to delete the entire line, thenperl -i.bak -pe "s/[#*]//g" filename
or in-place:perl -pe "next if /[#*]/" infile > outfile
perl -i.bak -pe "next if /[#*]/" filename
In reply to Re^3: Simple regexp question
by ikegami
in thread Simple regexp question
by droog114
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |