how can I read a file from last line to first line on the Unix command line?

$ perl -e 'print reverse <>' Input_file

There are also solutions in awk and sed – read the stackoverflow article for those solutions!


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.