Shell program to check Whether a given string is a Palindrome or Not

0
3
#!/bin/bash

read -p "Enter string>> " str1
str2=`echo $str1 | rev`

if [ $str1 == $str2 ]
then
	echo "Palindrome"
else
	echo "Not a palindrome"
fi


:'
Additional Info:
We can use 
lowerstr=$(echo $s | tr "[:upper:]" "[:lower:]") 
to covert given string to lowercase
'