EXPAND(1) | User Commands | EXPAND(1) |
expand [-t tablist] [file]...
expand [-tabstop] [-tab1, tab2,. . ., tabn] [file]...
unexpand [-a] [-t tablist] [file]...
unexpand copies files (or the standard input) to the standard output, putting TAB characters back into the data. By default, only leading SPACE and TAB characters are converted to strings of tabs, but this can be overridden by the -a option (see the OPTIONS section below).
-t tablist
Each tab-stop position N must be an integer value greater than zero, and the list must be in strictly ascending order. This is taken to mean that, from the start of a line of output, tabbing to position N causes the next character output to be in the (N+1)th column position on that line.
In the event of expand having to process a tab character at a position beyond the last of those specified in a multiple tab-stop list, the tab character is replaced by a single space character in the output.
-tabstop
-tab1,tab2,...,tabn
The following options are supported for unexpand:
-a
-t tablist
No space-to-tab character conversions occur for characters at positions beyond the last of those specified in a multiple tab-stop list.
When -t is specified, the presence or absence of the -a option is ignored; conversion will not be limited to the processing of leading blank characters.
file
0
>0
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
CSI | enabled |
Interface Stability | Standard |
February 1, 1995 | OmniOS |