In vi editor you can reverse
the order of lines by just
executing the following
ed command at the : prompt.
g/^/m0
This tip generously supported by:
ashutosh.tiwari@ind.xerox.com NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
production.