BSD 4_4_Lite2 development
[unix-history] / usr / share / man / cat1 / expand.0
EXPAND(1) BSD Reference Manual EXPAND(1)
N\bNA\bAM\bME\bE
e\bex\bxp\bpa\ban\bnd\bd, u\bun\bne\bex\bxp\bpa\ban\bnd\bd - expand tabs to spaces, and vice versa
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
e\bex\bxp\bpa\ban\bnd\bd [-\b-_\bt_\ba_\bb_\bs_\bt_\bo_\bp] [-\b-_\bt_\ba_\bb_\b1_\b,_\bt_\ba_\bb_\b2_\b,_\b._\b._\b._\b,_\bt_\ba_\bb_\bn] _\bf_\bi_\bl_\be _\b._\b._\b.
u\bun\bne\bex\bxp\bpa\ban\bnd\bd [-\b-a\ba] _\bf_\bi_\bl_\be _\b._\b._\b.
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
E\bEx\bxp\bpa\ban\bnd\bd processes the named files or the standard input writing the stan-
dard output with tabs changed into blanks. Backspace characters are pre-
served into the output and decrement the column count for tab calcula-
tions. E\bEx\bxp\bpa\ban\bnd\bd is useful for pre-processing character files (before sort-
ing, looking at specific columns, etc.) that contain tabs.
If a single _\bt_\ba_\bb_\bs_\bt_\bo_\bp argument is given, then tabs are set _\bt_\ba_\bb_\bs_\bt_\bo_\bp spaces
apart instead of the default 8. If multiple tabstops are given then the
tabs are set at those specific columns.
U\bUn\bne\bex\bxp\bpa\ban\bnd\bd puts tabs back into the data from the standard input or the
named files and writes the result on the standard output.
Option (with u\bun\bne\bex\bxp\bpa\ban\bnd\bd only):
-\b-a\ba By default, only leading blanks and tabs are reconverted to maximal
strings of tabs. If the -\b-a\ba option is given, then tabs are inserted
whenever they would compress the resultant file by replacing two or
more characters.
H\bHI\bIS\bST\bTO\bOR\bRY\bY
The e\bex\bxp\bpa\ban\bnd\bd command appeared in 3.0BSD.
4th Berkeley Distribution June 9, 1993 1