home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2778 / README < prev    next >
Encoding:
Text File  |  1991-02-18  |  1013 b   |  30 lines

  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:        lepreau@utah-cs.arpa, {ihnp4,decvax}!utah-cs!lepreau
  11.         Sometime lepreau@cs.utah.edu
  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
  30.