convert tabs to spaces, the easy way

2013-07-08 1 min read bash Fedora
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. tab2spcae This will print the output to STDOUT by default which you can redirect if you want. Related articles All You Wanted To Know About HERE Documents in Linux