s/^[\001-\017\s]{0,2}//; # char 0 to 15 (and whitespace) #### perl -pe 's/^[\001-\017\s]{0,2}//' infile.txt >outfile.txt