cat - concatenate and print files


cat [-benstuv] [file ...]


cat reads and prints the files in order they are given. If no files are given, standard input is processed. A lone dash represents standard input as well.


cat accepts the following options:


Number all the non blank lines, starting at 1.


Print a dollar sign ($) at the end of each lines. Implies -v.


Number all the lines, starting at 1.


The squeeze option. Sequential empty lines are squeezed into a single empty line.


Display tabs as ^I. Implies -v.


Unbuffer output.


Display non-printable characters in a printable way. Characters in the range \000 - \037, with the exception of tabs and linefeeds, are printed as ^X, where X is the symbol \0100 higher. DEL is printed as ^?. Characters whose highest bit is set are printed as M-, followed by the representation of the character with the high bit stripped.


The working of cat is not influenced by any environment variables.


cat has no known bugs.


This cat implementation is compliant with the IEEE Std1003.2-1992 specification, also known as POSIX.2.

This cat implementation is compatible with the OpenBSD implementation.


The Perl implementation of cat was written by Abigail,


This program is copyright by Abigail 1999.

This program is free and open software. You may use, copy, modify, distribute and sell this program (and any modified variants) in any way you wish, provided you do not restrict others to do the same.