
However, for some multimedia digital container formats, the resulting file is valid, and so cat provides an effective means of appending files. cat does not provide a way to concatenate Unicode text files that have a Byte Order Mark or files using different text encodings from each other.įor many structured binary data sets, the resulting combined file may not be valid for example, if a file has a unique header or footer, the result will spuriously duplicate these. As such, its two main use cases are text files and certain format-compatible types of binary files.Ĭoncatenation of text is limited to text files using the same legacy encoding, such as ASCII.

cat does not destroy non-text bytes when concatenating and outputting.


The Single Unix Specification defines the operation of cat to read files in the sequence given in its arguments, writing their contents to the standard output in the same sequence. The ReactOS version was written by David Welch, Semyon Novikov, and Hermès Bélusca. The version of cat bundled in GNU coreutils was written by Torbjorn Granlund and Richard Stallman. It was written by Ken Thompson and Dennis Ritchie. Cat was part of the early versions of Unix, e.g., Version 1, and replaced pr, a PDP-7 and Multics utility for copying a single file to the screen.
