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
What is the significance of $#?
c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command
What is bash used for?
Explain about the exit command?
What is option in shell script?
How does shell scripting work?
What is the use of "$?" Sign in shell script?
How do I set bash as default shell mac?
What is basename in shell script?
What are the 3 standard streams in linux?
What is the fastest scripting language?
What is the first line in every perl script called?
What is scripting autism?
Is bash an operating system?
What is bourne shell scripting?