Skip to main content

shell - reverse a string - bash

echo "Enter a string "
read s
s2=` echo $s | rev `
echo "Reversed String is $s2"

Comments

Popular posts from this blog

unix commands