Reverse String

Reverse the order of characters in a string, creating a mirror image of the original text.

Code

General
echo "$str" | rev

Parameters

The string to reverse

Server

More Bash Snippets