expand - expand tabs to spaces
expand [-t tablist] [file ...]
expand [-tabstop] [-tab1,tab2,...,tabn] [file ...]
The expand(1) utility processes the named files or the standard input, writing the standard output with tabs changed into blanks. Backspace characters are preserved into the output and decrement the column count for tab calculations. The expand(1) utility is useful for pre-processing character files (before sorting, looking at specific columns, and so on) that contain tabs.
If more than one number is specified, they are taken as the positions of the tabstops. The numbers must be in ascending order.
Any tab characters beyond the last specified tab in a multiple tabstop list are replaced by a single space.
The expand(1) utility exits with status 0 on success and >0 if an error occurred; if, for example, a problem arose while attempting to open a file.
unexpand(1)