Reading a text file backwards

Paul Rubin http
Fri Oct 1 05:10:38 CEST 2004


Andrew Dalke <adalke at mindspring.com> writes:
> > It's just shifting the burden perhaps, but if you're on a Unix system
> > you should be able to use tac(1) to reverse your file a bit faster:
> 
> Huh.  Hadn't heard of that one.  It's not installed
> on my OS X box.  It's on my FreeBSD account as gtac.
> Ah, but it is available on a Linux account.

You can try tail(1).  



More information about the Python-list mailing list