write a shell program to check wheather a given string is
pallindrome or not?
Answer Posted / mahesh gupta
this script is written for bash :
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 ? | 21 Yes | 6 No |
Post New Answer View All Answers
Explain about "s" permission bit in a file?
how to get part of string variable with echo command only?
how will you find the total disk space used by a specific user?
How do you create a shortcut in linux?
What is a shell in operating system?
How do I run a shell script on a mac?
Explain about debugging?
Is shell and terminal the same?
What are the different commands available to check the disk usage?
What does echo mean in scripting?
What is bash shell command?
How do we delete all blank lines in a file?
What is scripting autism?
What does $@ mean bash?
I have 2 files and I want to print the records which are common to both.