Casey West > ppt > tac

Download:
ppt-0.14.tar.gz

Annotate this POD

CPAN RT

New  3
Open  2
View/Report Bugs
Source  

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.

-S BYTES

Number of bytes to read at a time. Defaults to 8192.

NOTES ^

  1. -B and -S are peculiar to this implementation of tac.
  2. Regular expressions are as in Perl with some caveats:
  3. /foo(bar)/

    Do not use capturing parenthesis. They will conflict with tac's internal use of them.

  4. /foo|bar/

    Alternation may match out of sequence, because matches are made against chunks of files rather than whole files. Set -S to a suitably large number to avoid this.

AUTHOR ^

Tim Gim Yee | tgy@chocobo.org | I want a moogle stuffy!

COPYRIGHT ^

Copyright (c) 1999 Moogle Stuffy Software. All rights reserved.

You may play with this software in accordance with the Perl Artistic License.

syntax highlighting: