read -p "Enter a string:" stringif [[ $(rev <<< "$string") == "$string" ]];thenecho "palindrome"elseecho "not a palindrome"fi
Standard input is empty
palindrome
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!