Shell Script to reverse a String and print on console

Program

#!/bin/sh
echo "Enter a string:"
read string
echo "$string" | rev

Output

$ ./reverse_string.sh
Enter a string:
Welcome to Oodlescoop!
!poocseldoO ot emocleW