NAME
tac - concatenate and print files in reverse
SYNOPSIS
tac [-br] [-s separator] [-B] [-S bytes] [file...]
DESCRIPTION
tac copies files or standard input to standard output with the order of records reversed.
OPTIONS
- -b
-
Attach separator to the beginning of the record that it precedes in the file.
- -B
-
Read files in binary mode.
- -r
-
The separator is a regular expression.
- -s STRING
-
Use STRING as record separator. Set to
''
for paragraph mode. Defaults to newline. - size
- -S BYTES
-
Number of bytes to read at a time. Defaults to 8192.
NOTES
-B and -S are peculiar to this implementation of tac.
Regular expressions reek of camel. Here are a few constructs to watch out for:
\A, \Z, \z anchors are not useful... ^ $ ...maybe with /m () capturing parenthesis are not useful | alternation may match out of sequence
AUTHOR
Fuzzy | tgy@chocobo.org | Will hack Perl for a moogle stuffy! =^.^=
COPYRIGHT
Copyright (c) 1999 Moogle Stuffy, Inc. All rights reserved.
This program is cookie-ware. Cookie contributions in denominations of three are accepted. Chocolate chip is preferred. E-mail for more info.
You may otherwise play with this software in accordance with Perl's Artistic License.