[manual index][section index]

NAME

tac - contacenate files in reverse

SYNOPSIS

tac [ - ] [ file ... ]

DESCRIPTION

Cat reads each file in turn and writes it on the standard output in reverse. Thus

tac file

prints the file to standard output in reverse, and the following

tac file1 file2 >file3

contacenates two reversed files onto a third.

If no file is given, or where - is given as an argument, tac reads from the standard input. Output is buffered in blocks matching the input.

SOURCE

/appl/cmd/tac.b

SEE ALSO

cp(1), stream(1)

BUGS

Beware of tac a b >a and tac a b >b which destroy input files before reading them.

CAT(1 ) Rev:  Wed Feb 22 04:14:06 GMT 2023