File:  [CSRG BSD Unix] / 43BSDTahoe / new / tac / README
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:58 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43tahoe
BSD 4.3tahoe

Title:		tac

Author: 	Unknown off the net long ago, and
		Jay Lepreau
		Computer Science Dept.
		Univ. of Utah
		Salt Lake City, UT 84112
		801-581-4285
	
Net:		[email protected], {ihnp4,decvax}!utah-cs!lepreau
		Sometime [email protected]

tac ("cat" backwards) is a small program which prints file segments
in reverse order; by default it reverses by lines (like tail -r).
Besides being able to reverse a file by segments delimited by an
arbitrary string, its wins are that it is very fast, handles any
size segments and any size files.  These make it an excellent
filter, e.g. "tac <logfile> | egrep foo".

tmail is a trivial shell script which uses tac to display one's
mailbox, message by message, most recent first.

Potential improvements to tac which I would appreciate having fed back to me:
--segment by arbitrary regular expressions, but only if it's done
	w/o sacrificing the current speed for the default case.
--fix up handling of multiple files.
--nicely integrate with tail somehow.

1/11/86

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.