[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
cat
: Concatenate and write files
cat
copies each file (`-' means standard input), or
standard input if none are given, to standard output. Synopsis:
cat [option] [file]... |
The program accepts the following options. Also see 2. Common options.
cat
on MS-DOS/MS-Windows uses
binary mode only when standard output is redirected to a file or a pipe;
this option overrides that. Binary file I/O is used so that the files
retain their format (Unix text as opposed to DOS text and binary),
because cat
is frequently used as a file-copying program. Some
options (see below) cause cat
read and write files in text mode
because then the original file contents aren't important (e.g., when
lines are numbered by cat
, or when line endings should be
marked). This is so these options work as DOS/Windows users would
expect; for example, DOS-style text files have their lines end with
the CR-LF pair of characters which won't be processed as an empty line
by `-b' unless the file is read in text mode.
cat
to read and write files in
text mode.
cat
to read and write files in
text mode.
cat
to read and write files in text mode.
cat
to read and write
files in text mode.
cat
to
read files and standard input in DOS binary mode, so the CR
characters at the end of each line are also visible.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |