write a shell script to identify the given string is
palindrome or not?
Answer Posted / rag sagar.v
echo Enter the string
read s
echo $s > temp
rvs="$(rev temp)"
if [ $s = $rvs ]
then
echo "it is palindrome"
else
echo " it is not"
fi
| Is This Answer Correct ? | 410 Yes | 149 No |
Post New Answer View All Answers
What is the way to do multilevel if-else's in shell scripting?
Is shell scripting useful?
What are the different commands available to check the disk usage?
How do I stop script errors?
What is the syntax of while loop in shell scripting?
What is c in shell script?
What is the use of "$?" Sign in shell script?
What is inside a seashell?
Is bash an operating system?
Explain about shebang?
What are the different communication commands available in the shell?
What is bash command used for?
How to set an array in linux?
Is scripting and coding the same thing?
Why should we use shell scripts?