CAT(1) HP-UX 5.0 CAT(1) NAME cat - concatenate, copy, and print files SYNOPSIS cat [ -u ] [ -s ] [ -v [-t] [-e] ] file ... HP-UX COMPATIBILITY Level: HP-UX/NUCLEUS Origin: System V Native Language Support: 8-bit file names, 8-bit and 16-bit data, customs, messages DESCRIPTION Cat reads each file in sequence and writes it on the standard output. Thus: cat file prints the file, and: cat file1 file2 >file3 concatenates the first two files and places the result on the third. If no input file is given, or if the argument - is encountered, cat reads from the standard input file, enabling you to combine standard input with other files. The options are: -u causes output to be unbuffered (character-by- character); normally, output is buffered. -s makes cat silent about non-existent files, identical input and output, and write errors. Normally, no input file may be the same as the output file unless it is a special file. (The 4.2BSD cat -s feature is provided by ssp(1).) -v causes non-printing characters (with the exception of tabs, new-lines and form-feeds) to be printed visibly. Control characters are printed ^X (control-X); the DEL character (octal 0177) is printed ^?. Non-ASCII characters (with the high bit set) are printed as M-x, where x is the character specified by the seven low order bits. -t when used with the -v option, -t causes tabs to be printed as ^I's. -e when used with the -v option, causes a $ character to be printed at the end of each line (before the new-line). The -t and -e options are ignored if the -v option is not specified. SEE ALSO cp(1), pg(1), pr(1), rmnl(1), ssp(1). WARNING Command formats such as cat file1 file2 >file1 overwrite the data in file1 before the concatenation begins. Therefore, take care when using shell special characters.