expand

expand - convert tabs to spaces


Convert tabs to spaces using expand command:

expand file.txt > formated.txt

Convert only initial tabs to spaces using expand command:

expand -i file.txt > formated.txt

Convert one tab to one space:

expand -t1 file.txt > formated.txt