The other day, my daughter said “it’s opposite day” when it was time to do a little homework, trying to get out of it! Which reminded me of a funny little command line tool called rev. Rev reads a file and reverses all the lines. So let’s touch a file called rev ~/Desktop/revtest and then populate it with the following lines:
Now run rev followed by the file name:
Now cat it:
Now rev it again:
You go go forward and back at will for fun, much more fun than homework… Enjoy!