write a shell program to check wheather a given string is
pallindrome or not?
Answer Posted / ishita sen
echo Enter the string
read s
echo $s > temp
rvs="$(rcs temp)"
if [ $s = $rcs ]
then
echo "it is palindrome"
else
echo " it is not"
fi
| Is This Answer Correct ? | 11 Yes | 5 No |
Post New Answer View All Answers
What is web script?
What does the sh command do?
What does $$ mean in shell script?
What is the first line in a shell script?
How do we delete all blank lines in a file?
Explain about debugging?
What does $@ mean in shell?
How do I debug a shell script?
Is powershell a bash?
How do we create command aliases in a shell?
What language is used in terminal?
What can you do with powershell?
What is $1 in shell scripting?
How do you know which shell I am using?
What is a program shell?