5 lines
107 B
Bash
5 lines
107 B
Bash
if [[ "${text}" == "$(rev <<< "${text}")" ]]; then
|
|
echo "Palindrome"
|
|
else
|
|
echo "Not a palindrome"
|
|
fi
|