Reverse Lines in File
Posted: December 10, 2008 Filed under: NEZzen Leave a comment »This bit of code will reverse (not flip) all the lines of a file, starting with the last line.
perl -e 'print reverse <>' < input > output
For example if your file is
a b c
this will convert it to
c b a
