@(#)tac.1 1.2 06/05/86
prints the file in reverse, line by line, and:
TAC 1 ""
NAME
tac - concatenate and print files in reverse
SYNOPSIS
tac [
-string ] [
+string ] [ file ... ]
DESCRIPTION
Tac reads each
file in sequence
and writes it on the standard output, reversed by the file segments
delimited by
string. -string specifies segments bounded on the left by
string, while
+string specifies right-bounded segments.
The default is
+\en (print lines in reverse order).
If no input
file is given, or if the argument `-'
is encountered,
tac reads from the standard input. Note that in this case
tac stores the entire standard input in a temporary
file before it outputs anything, so for large input it is slow.
EXAMPLES
prints out one's mail messages, most recent first.
tac file
prints out the hard errors on MASSBUS disk drives, most recent first.
SEE ALSO
cat(1), rev(1), tail(1), tmail(1)
BUGS
Tac doesn't handle multiple argument files exactly right, and it's
also unclear in which order they should be processed.
If invoked as `tac < file', tac uses a temp file but it doesn't have to.