|
|
1.1 root 1: Title: tac
2:
3: Author: Unknown off the net long ago, and
4: Jay Lepreau
5: Computer Science Dept.
6: Univ. of Utah
7: Salt Lake City, UT 84112
8: 801-581-4285
9:
10: Net: [email protected], {ihnp4,decvax}!utah-cs!lepreau
11: Sometime [email protected]
12:
13: tac ("cat" backwards) is a small program which prints file segments
14: in reverse order; by default it reverses by lines (like tail -r).
15: Besides being able to reverse a file by segments delimited by an
16: arbitrary string, its wins are that it is very fast, handles any
17: size segments and any size files. These make it an excellent
18: filter, e.g. "tac <logfile> | egrep foo".
19:
20: tmail is a trivial shell script which uses tac to display one's
21: mailbox, message by message, most recent first.
22:
23: Potential improvements to tac which I would appreciate having fed back to me:
24: --segment by arbitrary regular expressions, but only if it's done
25: w/o sacrificing the current speed for the default case.
26: --fix up handling of multiple files.
27: --nicely integrate with tail somehow.
28:
29: 1/11/86
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.