wp.jochen.hayek.name/blog-en

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!

Exit mobile version