Help for this page

Select Code to Download


  1. or download this
    perl -pe 's/\t/\\t/g' infile > outfile
  2. or download this
    my %mapping = ( # or whatever you like to display
      "\t" => '\t',
      "\n" => '\n',
    ...
      s/$pattern/$mapping{$1}/g;
      print "$_\n"; # you still want to start a new line
    }