INTRO(CT) XENIX System V INTRO(CT)
Name
intro - Introduces text processing commands.
Description
This section describes use of the individual commands
available in the XENIX Text Processing System. Each
individual command is labeled with the letters CT to
distinguish it from commands available in the XENIX
Operating and Development Systems. These letters are used
for easy reference from other documentation. For example,
the reference mm(CT) indicates a reference to a discussion
of the mm command in this section, where the letter ``C''
stands for ``command'' and the letter ``T'' stands for
``Text Processing''.
Syntax
Unless otherwise noted, commands described in this section
accept options and other arguments according to the
following syntax:
name [option...] [cmdarg...]
This syntax is detailed below:
name The filename or pathname of an executable file
option A single letter representing a command option.
By convention, most options are preceded with a
dash. Option letters can sometimes be grouped
together as in -abcd or they are specified
individually as in -a -b -c -d . The method of
specifying options depends on the syntax of the
individual command. In the latter method of
specifying options, arguments can be given to
the options. For example, the -f option for
many commands often takes a following filename
argument.
cmdarg A pathname or other command argument not
beginning with a dash or a period (.). It may
also be a dash by itself indicating the
standard input.
See Also
getopt(C), getopt(S)
Page 1 (printed 8/7/87)
INTRO(CT) XENIX System V INTRO(CT)
Diagnostics
Upon termination, each command returns 2 bytes of status,
one supplied by the system and giving the cause for
termination, and (in the case of ``normal'' termination) one
supplied by the program. (See wait(S) and exit(S).) The
former byte is 0 for normal termination; the latter is
customarily 0 for successful execution and nonzero to
indicate troubles such as erroneous parameters, bad or
inaccessible data, or other inability to cope with the task
at hand. It is called variously ``exit code,'' ``exit
status,'' or ``return code,'' and is described only where
special conventions are involved.
Notes
Many commands do not adhere to the given syntax.
Page 2 (printed 8/7/87)