We can use tac to read file(s) or stdout in reverse order.
tac
stdout
tac - concatenate and print files in reverse
$ echo -e "Hello\nWorld" | tac World Hello
Source: StackOverFlowarrow-up-right
Last updated 1 year ago