how can I read a file from last line to first line on the Unix command line? – cat vs tac $ perl -e ‘print reverse <>’ Input_file There are also solutions in awk and sed – read the stackoverflow article for those solutions!

rcs2git using Perl, Ruby, AWK – using Perl – using Perl – I forked knuta’s version – using AWK – using Ruby