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
What is a beat in a script?
Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?
Is powershell a bash?
Explain about non-login shell files?
How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?
Explain about return code?
What are the disadvantages of shell scripting?
How to debug the problems encountered in the shell script/program?
Is shell a scripting language?
Write the syntax for "if" conditionals in linux?
What does $1 mean in bash?
What is scripting autism?
Is it possible to substitute "ls" command in the place of "echo" command?
What are filters explain sort with all the options available?