How to print back to front
POSER at SU-CSLI.ARPA
POSER at SU-CSLI.ARPA
Fri Sep 7 16:59:31 AEST 1984
From: Bill Poser <POSER at SU-CSLI.ARPA>
It isn't terribly difficult to write a new program to do this,
but in fact the -r option of tail will work just fine. The limitation
to one input buffer full can be avoided simply by declaring the input buffer
sufficiently large to contain the entire input file. This may be less
efficient in terms of physical i/o blocking and may hog memory, but
unless memory and efficiency constraints are unusual this doesn't matter.
In the Berkeley version of tail.c the input buffer size is controlled by
the parameter LBIN which is defined as 4097. Just change this number to
something big. I tried this with LBIN set to 100000 and it worked just
fine.
Bill Poser
(poser at su-csli, poser at su-russell)
-------
More information about the Comp.unix
mailing list