How can I reverse a text file in Bash?
For example, if some.txt
contains this:
book
pencil
ruler
then how can I get this? :
relur
licnep
koob
bashshell
How can I reverse a text file in Bash?
For example, if some.txt
contains this:
book
pencil
ruler
then how can I get this? :
relur
licnep
koob
Best Answer
Try the combined form of
tac
andrev
commands,From
man tac
From
man rev