[net.unix-wizards] want program to reverse lines in a file

Michael.Young@Cmu-10a (10/09/82)

From: Michael Wayne Young <Michael.Young@Cmu-10a>
Date:  8 October 1982 1344-EDT (Friday)
Well, I don't have one, but it'd only take a couple of minutes --
here's the quick and dirty solution: reverse the whole file
(character by character) first, then run "rev" to get the lines
back in the right order.  [The only problem you have to worry about
is the trailing newlines; still, that's easy to deal with.]
You can read blocks from the end, and reverse them, writing them
to the new file.  Simple, eh?
			Michael