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
How will you connect to a database server from linux?
What is subshell?
What is the default ubuntu terminal?
What are the different commands available to check the disk usage?
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?
Give some situations where typing error can destroy a program?
What does egrep mean?
What are the types of script?
Write down the syntax of "for " loop
What is basename in shell script?
What is scripting used for?
What is the way to do multilevel if-else's in shell scripting?
What does echo mean in scripting?
What is a shell script in windows?
What is sudo command?