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 shell company all about?
How do you find out What is your shell?
How do I run a .sh file?
When should shell programming/scripting not be used?
Is powershell a language?
What does .sh file contain?
How do I open a jshell in cmd?
write a shell script to check the failed jobs?
Is shell scripting useful?
What is echo $shell?
What are the different types of commonly used shells on a typical linux system?
Is it possible to substitute "ls" command in the place of "echo" command?
What is the equivalent of a file shortcut that we have a window on a linux system?
How to check if a directory exists?
What is the first line in every perl script called?