Replace Tab with Space

Replacing each <TAB> character in a file with a comma character can be accomplished several different ways with Perl. (I guess that’s one reason the Perl slogan says There’s more than one way to do it.) My favorite way is like this, from the command-line: perl -pi.bak -e ‘s/\t/,/g’ myfile.txt From the Unix (or DOS) …

Replace Tab with Space Read More »