#!/bin/shstr=$1if [ -z $1 ];then echo usage $0 str exit 1filen=${#str}while [ $len -ge 0 ];do m=${str:$len:1} ((len--)) res=$res$mdoneecho $res