Search This Blog

Tuesday, October 12, 2021

Reverse the files

tac command is reverse of cat. It writes each file to stdout, last line first.

If you want to reverse the whole file in vim you can do it by :%!tac