convert tabs to spaces, the easy way

Lots of times you want to convert tabs to spaces and sometimes from a shell script, if that is the case, then simple solution is “tidy“. First you need to install tidy as follows:

sudo yum install tidy

and then you can use the command tab2space.


This will print the output to STDOUT by default which you can redirect if you want.


Enhanced by Zemanta

This site uses Akismet to reduce spam. Learn how your comment data is processed.