1CAT(1)                      General Commands Manual                     CAT(1)
2
3
4

NAME

6       cat - catenate and print
7

SYNOPSIS

9       cat [ -u ] [ -n ] [ -s ] [ -v ] file ...
10

DESCRIPTION

12       Cat reads each file in sequence and displays it on the standard output.
13       Thus
14
15       cat file
16
17       displays the file on the standard output, and
18
19       cat file1 file2 >file3
20
21       concatenates the first two files and places the result on the third.
22
23       If no input file is given, or if the argument `-' is  encountered,  cat
24       reads  from  the  standard input file.  Output is buffered in the block
25       size recommended by stat(2) unless the standard output is  a  terminal,
26       when  it  is  line buffered.  The -u option makes the output completely
27       unbuffered.
28
29       The -n option displays the output lines preceded by lines numbers, num‐
30       bered sequentially from 1.  Specifying the -b option with the -n option
31       omits the line numbers from blank lines.
32
33       The -s option crushes out multiple adjacent empty  lines  so  that  the
34       output is displayed single spaced.
35
36       The  -v  option displays non-printing characters so that they are visi‐
37       ble.  Control characters print like ^X for control-x; the delete  char‐
38       acter  (octal  0177) prints as ^?.  Non-ascii characters (with the high
39       bit set) are printed as M- (for meta) followed by the character of  the
40       low  7  bits.   A -e option may be given with the -v option, which dis‐
41       plays a `$' character at the end  of  each  line.   Specifying  the  -t
42       option with the -v option displays tab characters as ^I.
43

SEE ALSO

45       cp(1), ex(1), more(1), pr(1), tail(1)
46

BUGS

48       Beware  of `cat a b >a' and `cat a b >b', which destroy the input files
49       before reading them.
50
51
52
534th Berkeley Distribution         May 5, 1986                           CAT(1)
Impressum