
expand(1) | expand(1) |
NAME
expand, unexpand - expand tabs to spaces, and vice versa
SYNOPSIS
expand
unexpand
Obsolescent:
expand
DESCRIPTION
expand processes the named ®les or the standard input and writes to the standard output with tabs changed into spaces. Backspace characters are preserved in the output, and the column count is decreased by one column for tab calculations. For proper tab calculation, if a
expand recognizes the following
This option is obsolescent and is equivalent to using |
This option is obsolescent and is equivalent to using
unexpand processes the named ®les or the standard input and writes to the standard output with spaces changed into tabs where possible. By default, only leading spaces and tabs are converted to maximal strings of tabs. The default tab position is every 8 characters. Backspace characters are preserved into the output, and the column count is decreased by one column for tab calculations. For proper tab calculation, if a
unexpand recognizes the following
Tabs are inserted whenever they would compress the resultant ®le by replacing two or | |
| more spaces before a tab position. |
tablist speci®es the tab positions. tablist can take two forms. If it is a single number, | |
| tabs are set every tablist spaces apart. If tablist is a blank- or |
| increasing positions, tabs are set at those locations. The |
| option. If the |
| except that |
EXTERNAL INFLUENCES
Environment Variables
LC_CTYPE determines the interpretation of text as single and/or
LC_MESSAGES determines the language in which messages are displayed.
If LC_CTYPE or LC_MESSAGES is not speci®ed in the environment or is set to the empty string, the value of LANG is used as a default for each unspeci®ed or empty variable. If LANG is not speci®ed or is set to the empty string, a default of "C" (see lang(5)) is used instead of LANG.
If any internationalization variable contains an invalid setting, expand and unexpand behave as if all internationalization variables are set to "C". See environ(5).
If LC_ALL is set to a
International Code Set Support
Single- and
− 1 − | Section 1−259 |
e