|
|
coherent
scat Command scat
Print text files one screenful at a time
ssccaatt [ [_o_p_t_i_o_n ...] [_f_i_l_e ...] ] ...
scat prints each file on the standard output, one screenful (24
lines) at a time if the output is a screen. scat reads and
prints the standard inputif no file is named.
The text is processed to allow convenient viewing on a screen;
the options described below select the nature of the processing.
Options begin with `-' and may be interspersed with file names.
scat scans two argument lists. The first is in the environmental
SCAT. It should consist of arguments separated by white space
(space, tab, or newline characters), with no quoting or shell
metacharacters. This string is a useful place to set terminal-
dependent parameters (such as page width and length) and to place
invocation lists (see below). The second argument list is sup-
plied on the command line.
scat recognizes the following options:
-11 Do not stop at EOF if exactly one file was specified on the
command line.
-bb_n Begin output at input line n.
-cc Represent all control characters unambiguously. With this
option, scat prints control characters in the range 0-037 as
a character in the range 0100-0137 prefixed by a carat `^';
for example, SOH appears as ``^A'' and DEL as ``^?'' It
prints mark-parity characters (in the range of 0200-0377)
with `~'; for example, mark-parity `A' and SOH appear as
``~A'' and ``~^A'', respectively. It also prefixes the
characters `^', `~', and `\' with a `\'. This option over-
rides the option -t.
-ccss Like -c, but map space ` ' to underscore `_' and prefix un-
derscore `_' with `\'.
-cctt Like -c, but map tabs to spaces, not ``^I''.
-ii_n Shift the display window right n columns into the text
field. This is useful for viewing long lines.
-ll_n Set the display window length to n lines. The default is 24
normally, 34 for the Tek 4012.
-nn Number input lines; wrapped lines are not numbered.
-rr Remote; the output is not paged.
-ss Skip empty lines.
COHERENT Lexicon Page 1
scat Command scat
-SS_n Seek n bytes into input before processing.
-tt Truncate long lines. Normally, scat wraps each long line,
with the interrupted portion delimited by a `\'.
-ww_n Set the display window width to n columns. The default is
80 normally, 72 for the Tek 4012.
-xx Expand tabs.
-. _s_u_f_f_i_x
Invoke options by file-name suffix. If a file name ends
with .suffix, then scat scans the argument sublist starting
immediately after the invocation flag. New options will ap-
ply to the invoking file only. A sublist is terminated by
the end of the argument list, by a file name, by the ``--''
flag, or by another ``-.'' (invocation lists do not nest).
-- Terminate a sublist (see previous option).
Numbers may begin with 0 to indicate octal, and may end in b or k
to be scaled by 512 or 1,024, respectively.
If the output is being paged, scat waits for a user response,
which may be one of the following:
nneewwlliinnee Display next page
/ Display next half-page
ssppaaccee Display next line
ff Print current file name and line number
nn ssccaatt next file
qq Quit
***** Example *****
The following shows how to use the environment argument list, in-
vocation lists, and sublists:
SCAT="-l24 -.c -n -.s -b5"
export SCAT
scat *.c *.s
After processing the SCAT argument list, scat processes the com-
mand line argument list ``*.cc *.ss'' with the page length at 24
lines. If a file is a C source (``*.cc'') the invoke option in
the SCAT argument list numbers the output lines. If a file is an
assembly source (``*.ss'') scat skips the first four lines.
***** See Also *****
cat, commands, pr
COHERENT Lexicon Page 2
scat Command scat
COHERENT Lexicon Page 3
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.