tac is like cat but the output is reversed.

I used it for finding the most recent error log:


tac err.log | grep -m 1 ERROR

source