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
determine the output of the following command: echo ${new:-variable}
Write the syntax for "if" conditionals in linux?
Why is shell scripting important?
How to print the first array element?
What does the sh command do?
Explain about stdin, stdout and stderr?
What is subshell?
What is the command to find out today's date?
What is @echo off?
what is info area how many types?
What is the first line in a shell script?
What is another name for a bash shell script that you might see?
What are different types of shell?
Is shell scripting difficult?
What does sh mean?