How to remove tab characters from text files - Noob vs. Pro
AI Noob Answer:
"You can use a text editor like Notepad++. In these editors, you use the "Find and Replace" function to search for and replace all instances of the tab character with a space.
... best done on 150 files in a row!Alternatively, use the command line tool sed:
sed 's/\t//g' input.txt > output.txt
which will replace all tab characters in "input.txt" with no space and save the result in "output.txt"."
... i didn't mean to literally 'remove', but to replace by the correct number of spaces.Is that helpful? Not really.
It's as stupid as: "Build a robot and train his AI to open text files in an editor, find tab characters, edit them manually by replacing them with spaces. Should only take five years."
Pro answer:
Forget the above junk, download the free open source SFK for any system and type:
sfk detab=3 mydir
Done. Example output:
detab mydir\foo.txt 10 tabs
detab mydir\bar.txt 3 tabs
detab mydir\goo.txt 1 tabs
PC users cannot believe!
How to list the biggest files in a folder
Office workers in uproar!
How to send files to another computer in the LAN