reversing lines in a file

Bill Poser POSER at SU-CSLI.ARPA
Thu Sep 26 16:30:50 AEST 1985


The problem with tail -r giving you only a portion of the file is easily
overcome unless you are working with *very* large files or have very little
core (or don't have sources). The reason it does this is that tail reads
its input in chunks and you're only getting one. The chunk size is set
by a define. I forget the name of the parameter but it's pretty obvious.
I think it's set to 8192 in the distribution. Just change this to a suitable
larger value and recompile.
-------



More information about the Comp.unix mailing list