read -p "Enter a string:" string
if [[ $(rev <<< "$string") == "$string" ]];
then
echo "palindrome"
else
echo "not a palindrome"
fi