write a shell script to identify the given string is
palindrome or not?
Answer Posted / sunny garg
echo "Enter the string"
read s
echo "$s -gt temp"
rvs="$(rev temp)"
if [ $s -eq $rvs ]
then
echo "it is palindrome"
else
echo " it is not"
fi
| Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
How do scripts work?
What is difference between shell and bash scripting?
What is the best shell scripting language?
What are the different communication commands available in the shell?
What shell is bin sh?
What is another name for a bash shell script that you might see?
What is shell terminal?
What is shell and terminal?
how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?
wats the deinitions for shell utility and filter?
What command needs to be used to take the backup?
What is difference between bash and shell?
madhar chod unix ke 10 commands dhang se likh nahi sakta hai
Is bash a shell script?
How to debug the problems encountered in the shell script/program?