write a shell script to identify the given string is
palindrome or not?
Answer Posted / sathya
echo "enter a string"
read str
rev=`expr $str|rev`
if [ $rev = $str ]
then
echo "the given string is palindrome"
else
echo "the given string is not palindrome"
fi
| Is This Answer Correct ? | 20 Yes | 14 No |
Post New Answer View All Answers
How to write a function?
Please give me example of " at command , contrab command " how to use
Can we run shell script in windows?
What is awk in shell scripting?
What is a shell script? Can you name some of its advantages?
What is the best scripting language?
What will happen to my current process when I execute a command using exec?
What is the use of break command?
What is shell application?
What is k shell?
Is shell scripting difficult?
What is the default shell of solaris?
Which shell is the best?
What is a file basename?
How to print the first array element?