You can use various tools. The expand command converts all tabs to spaces. It preserves backspace characters in the output; they decrement the column count for
tab calculations.
expand input.file > output.fileThe -t option can be used to set comma separated list of explicit tab positions. You can use the unexpand command convert spaces to tabs. See man page for more info:
expand data.txt > output.txt
expand -t 2 data.txt > output.txt
man expand
man unexpand
No comments:
Post a Comment