This question already has an answer here:
- How to reverse a list of words in a shell string? 13 answers
how do I read line reverse from a file like,
#cat file
hello world
hello world bash
so I need output like this,
world hello
bash world hello