version 1.2, 1996/06/26 05:32:47 |
version 1.3, 1998/09/23 04:32:39 |
|
|
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm expand |
.Nm expand |
.Op Fl Ns Ar tabstop |
.Op Fl Ns Ar tabstop |
.Op Fl Ns Ar tab1,tab2,...,tabn |
.Op Fl Ns Ar tab1 , tab2 , ... , tabn |
.Ar |
.Ar file Op Ar ... |
.Nm unexpand |
.Nm unexpand |
.Op Fl a |
.Op Fl a |
.Ar |
.Ar file Op Ar ... |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm Expand |
.Nm expand |
processes the named files or the standard input writing |
processes the named files or the standard input writing |
the standard output with tabs changed into blanks. |
the standard output with tabs changed into blanks. |
Backspace characters are preserved into the output and decrement |
Backspace characters are preserved into the output and decrement |
the column count for tab calculations. |
the column count for tab calculations. |
.Nm Expand |
.Nm expand |
is useful for pre-processing character files |
is useful for pre-processing character files |
(before sorting, looking at specific columns, etc.) that |
(before sorting, looking at specific columns, etc.) that |
contain tabs. |
contain tabs. |
.Pp |
.Pp |
If a single |
If a single |
.Ar tabstop |
.Ar tabstop |
argument is given, then tabs are set |
argument is given, tabs are set |
.Ar tabstop |
.Ar tabstop |
spaces apart instead of the default 8. |
spaces apart instead of the default 8. |
If multiple tabstops are given then the tabs are set at those |
If multiple tabstops are given then the tabs are set at those |
specific columns. |
specific columns. |
.Pp |
.Pp |
.Nm Unexpand |
.Nm unexpand |
puts tabs back into the data from the standard input or the named |
puts tabs back into the data from the standard input or the named |
files and writes the result on the standard output. |
files and writes the result on the standard output. |
.Pp |
.Pp |
|
|
By default, only leading blanks and tabs |
By default, only leading blanks and tabs |
are reconverted to maximal strings of tabs. If the |
are reconverted to maximal strings of tabs. If the |
.Fl a |
.Fl a |
option is given, then tabs are inserted whenever they would compress the |
option is given, tabs are inserted whenever they would compress the |
resultant file by replacing two or more characters. |
resultant file by replacing two or more characters. |
.El |
.El |
.Sh HISTORY |
.Sh HISTORY |