Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!ginosko!uunet!virtech!cpcahil From: cpcahil@virtech.UUCP (Conor P. Cahill) Newsgroups: comp.unix.questions Subject: Re: Reversing a file? Summary: tail wont work if the file is too long Message-ID: <1225@virtech.UUCP> Date: 3 Oct 89 18:00:50 GMT References:<1989Oct3.041122.28028@ctr.columbia.edu> Organization: Virtual Technologies Inc Lines: 24 In response to an article about reversing a file... In article <1989Oct3.041122.28028@ctr.columbia.edu>, seth@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 | +-----------------------------------------------------------------------+