25.19 Reverse Lines in Long Files with flipIf you're looking at a long log file and you want to see the most recent lines first, you might use the tail -r ( 25.15 ) command. It shows the lines of a file in reverse order, last line first. It will give up if your file is too big, though. How big "too big" is depends on your version of tail . To find out, try a very big text file and see how far tail -r goes:
%
#!/usr/local/bin/perl print reverse <> - |
|