MPE/iX Shell and Utilities Reference Manual, Vol 2

unexpand(1) MPE/iX Shell and Utilities unexpand(1)
NAME
unexpand — compress spaces into tabs
SYNOPSIS
unexpand [–a][–t tablist][file ...]
DESCRIPTION
unexpand replaces spaces with tabs in the data from each file argument. If you do not speci-
fy any files, unexpand reads the standard input. The result is sent to standard output.
Backspace characters are preserved. By default, unexpand compresses only leading spaces
into tabs; tab stops are set every eight positions.
Options
unexpand accepts the following options:
–a compresses spaces into tabs wherever the resulting output is shorter, regardless of
where the spaces occur in the line.
–t tablist
specifies tab stops. The numbers in tablist are delimited by blanks or commas. If ta-
blist is a single number, then unexpand places tab stops every tablist positions. If
tablist contains multiple numbers, unexpand places tab stops at those specific posi-
tions. Multiple numbers in tablist must be in ascending order. This option, like the
–a option, compresses spaces to tabs at any appropriate point in the line. If you
specify –t, unexpand ignores the presence or absence of –a.
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 Failure due to an invalid command line argument, or an inability to open the input file(s).
Message
Message: file "filename": system error .CAUSE See syserror(3).
Action: See syserror(3).
Message: insufficient memory: system error
Cause: See syserror(3).
Action: See syserror(3).
Message: Option –option argument missing
Cause: You did not provide an argument for –option.
Action: Provide the missing argument.
1-632 Commands and Utilities