Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain about "s" permission bit in a file?

1052


how to get part of string variable with echo command only?

1016


how will you find the total disk space used by a specific user?

1045


How do you create a shortcut in linux?

1184


What is a shell in operating system?

1100


How do I run a shell script on a mac?

1117


Explain about debugging?

1014


Is shell and terminal the same?

1048


What are the different commands available to check the disk usage?

991


What does echo mean in scripting?

1001


What is bash shell command?

999


How do we delete all blank lines in a file?

1103


What is scripting autism?

1208


What does $@ mean bash?

1157


I have 2 files and I want to print the records which are common to both.

1157