John's Corner

Spaceit

Spaceit is a command line program designed to scan a text file and convert any tabs to an equivalent number of spaces to maintain the formatting, assuming fixed width fonts. It takes an input file of plain ASCII text and converts tabs into spaces based on tab stops every n columns. The tab width n defaults to 8 but can be set on the command line to any value between 2 and 32.

Examples: SPACEIT 6 < FILE1.TXT > FILE2.TXT

or: TYPE FILE1.TXT | SPACEIT 6 > FILE2.TXT

These commands take an input file FILE1.TXT and produce an output file FILE2.TXT with tabs expanded to spaces based on six character columns.


Download Spaceit


Return to Front Page


John's Corner