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 script to identify the given string is
palindrome or not?

Answer Posted / sunny garg

echo "Enter the string"
read s
echo "$s -gt temp"
rvs="$(rev temp)"
if [ $s -eq $rvs ]
then
echo "it is palindrome"
else
echo " it is not"
fi

Is This Answer Correct ?    4 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do scripts work?

991


What is difference between shell and bash scripting?

936


What is the best shell scripting language?

950


What are the different communication commands available in the shell?

909


What shell is bin sh?

902


What is another name for a bash shell script that you might see?

1416


What is shell terminal?

898


What is shell and terminal?

927


how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?

4016


wats the deinitions for shell utility and filter?

2249


What command needs to be used to take the backup?

935


What is difference between bash and shell?

1006


madhar chod unix ke 10 commands dhang se likh nahi sakta hai

3412


Is bash a shell script?

995


How to debug the problems encountered in the shell script/program?

1068