tabs - Sets tab stops on terminals
tabs [-n] [-T terminal] [+m[margin]]
tabs [predefined_tab_flag] [-T terminal] [+m[margin]]
tabs [-T terminal] [+m[margin]] number[,number]...
command clears up to 20 previous tabs and
sets up to 40 tabs on the terminal according to the supplied tab specifications.
Interfaces documented on this reference page conform to industry standards as follows:
tabs: XPG4, XPG4-UNIX
Refer to the
reference page for more information
about industry standards and associated tags.
Specifies repetitive tab stops separated by a uniform number of column positions, n, where n is a single-digit number. The default usage of tabs with no arguments is equivalent to tabs -8. If you use -0, the tab stops are cleared and no new ones are set. Identifies the terminal so that tabs can set tabs and margins correctly. The terminal argument is one of the conventional terminal names supported by your system.
Sets tabs at the named column numbers (a list in ascending
order, separated by commas). You can specify up to 40 numbers. If any number
except the first has a plus sign prefix, the prefixed number is added to the
previous number for the next setting. Thus, the tab lists
provide the same tab settings.
If you use the tabs command with no options or operands, the terminal tabs are reset to the system defaults for your terminal type. If only the -T option is used, tabs are reset to the defaults for that terminal type.
[Compaq] When you use the
command, always consider
the leftmost column number to be 1, even if your terminal refers to it as
0 (zero). Tab-stop position
means that tabbing to position
causes the next character output to be in the
column position on that line.
[Compaq] The flags described in the following list provide formats required by most structured programming languages. Some of these flags require that a particular format line be present in the file being manipulated. This is indicated in the list. Sets the tabs to 1, 10, 16, 36, and 72. Sets the tabs to 1, 10, 16, 40, and 72. Sets the tabs to 1, 8, 12, 16, 20, and 55 (COBOL normal format) Sets the tabs to 1, 6, 10, 14, and 49 (COBOL compact format, columns 1 to 6 omitted). With this code, the first column position corresponds to card column 7. One space gets you to column 8, and a tab reaches column 12. Files using this code must include the following format specification:
[Compaq] A format specification consists of a sequence of arguments separated by blanks and enclosed in brackets and colons: <: :>. Each argument consists of a keyletter and an optional value which immediately follows it. The following arguments can be used: [Compaq] Specifies tab settings. The value for tabs can be: [Compaq] A list of column numbers separated by commas, indicating tab stops at the specified columns. [Compaq] A - (dash) followed by a number n, specifying tabs stops every n columns. [Compaq] A preset tab specification, for example -a2. [Compaq] Specifies a maximum line size, or length. The size specification must be an integer. (The value of size is checked after tabs have been expanded but before the margin is prepended.) [Compaq] Specifies a number of spaces to be inserted at the beginning of each line. The margin specification must be an integer. [Compaq] Indicates that the line containing the format specification is to be deleted from the converted file.
[Compaq] Default values of
are assumed if
not included in the specification; if
is not included,
line size is not checked. If the first line of a file does not contain a
format specification, these defaults are assumed for the entire file.
command assumes that standard
output is the terminal. If standard output is redirected, the results are
Full operation of all capabilities may be restricted by the
The following exit values are returned:
An error occurred.
To set tabs every four spaces, enter: tabs -4 To clear all tabs, enter: tabs
The following environment variables affect the execution of
Provides a default value for the internationalization variables
that are unset or null. If
is unset or null, the corresponding value from the default locale is used.
If any of the internationalization variables contain an invalid setting, the
utility behaves as if none of the variables had been defined.
If set to a non-empty string value, overrides the values of
all the other internationalization variables.
Determines the locale for the interpretation of sequences
of bytes of text data as characters (for example, single-byte as opposed to
multi-byte characters in arguments).
Determines the locale for the format and contents of diagnostic
messages written to standard error.
Determines the location of message catalogues for the processing
Determines the terminal type if the
is not used.
Commands: expand(1), nroff(1), stty(1), tset(1)