perl -pe "next if /[#*]/" infile > outfile