How to reverse all words with linux command | Linux in Pakistan
Shell Script

How to reverse all words with linux command

The command reverse all the characters

For example i have a word linux this command reverse it to xunil

echo 'linux' | grep -o '.' | tac | sed ':a;N;s/\n//;ta'

Command Output

reverse command linux