How to reverse a string on Linux and Windows Via shell script on Linux sh-3.2# vi reverse.sh #### Start Script ##### #!/bin/bash input_string=”$1″ reverse_string=”” input_string_length=${#input_string} for (( i=$input_string_length-1; i>=0; i– )) do reverse_string=”$reverse_string${input_string:$i:1}” done echo “$reverse_string” ##### End Script ##### […] ↓ Read the rest of this entry…