Reversing a file?

Conor P. Cahill cpcahil at virtech.UUCP
Wed Oct 4 04:00:50 AEST 1989


In response to an article about reversing a file...

In article <1989Oct3.041122.28028 at ctr.columbia.edu>, seth at ctr.columbia.edu (Seth Robertson) writes:
> 			   ***************
> 			   ***************
> 		           **           **
> 			   **  tail -r  **
> 		           **           **
> 			   ***************
> 			   ***************

This wont work on system V (since -r is not an option to tail) and probably 
wont work on most other unixes if the file is large since tail will only read
the last block (not sure of exact size) of the file.

This is the problem when you want to get the last 1000 lines in a file of 
80 character lines.  I haven't found a standard tail that will properly 
handle this, but I have written one.

-- 
+-----------------------------------------------------------------------+
| Conor P. Cahill     uunet!virtech!cpcahil      	703-430-9247	!
| Virtual Technologies Inc.,    P. O. Box 876,   Sterling, VA 22170     |
+-----------------------------------------------------------------------+



More information about the Comp.unix.questions mailing list