We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
#!/bin/bash echo -e "\n Enter the string" read string reverse="" len=${#string} for (( i=$len-1; i>=0; i-- )) do reverse="$reverse${string:$i:1}" done echo "$reverse"
or
echo $string | rev