write a shell script to identify the given string is
palindrome or not?
Answer Posted / kirtiranjan sahoo
read -p "Enter a string : " st
rvs=`echo $st | rev`
if [ $st == $rvs ]
then
echo "Palindrome"
else
echo "Not Palindrome"
fi
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What is inside a seashell?
What are the two files of crontab command?
What is basename in shell script?
What is option in shell script?
How do I run a shell script in powershell?
What is the way to do multilevel if-else's in shell scripting?
Why is it called a shell?
What is .sh file in mac?
Which is better perl or shell scripting?
How do I run a script on mac?
How does path variable work?
What can you do with powershell?
What is console line?
What is shell scripting used for?
How would you compare the strings in a shell script?