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 / sathya

echo "enter a string"
read str
rev=`expr $str|rev`
if [ $rev = $str ]
then
echo "the given string is palindrome"
else
echo "the given string is not palindrome"
fi

Is This Answer Correct ?    20 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to redirect both standard output and standard error to the same location?

1105


What are the two files of crontab command?

1140


How to print the first array element?

978


Please give me example of " at command , contrab command " how to use

2720


What is a shell environment?

937


What is eval in shell script?

1158


Explain about gui scripting?

1036


What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?

998


What language is shell scripting?

969


What is awk in shell script?

1171


What is the use of "$#" in shell scripting?

984


I want to connect to a remote server and execute some commands, how can I achieve this?

972


What is path variable bash?

988


What does $1 mean in bash?

1023


What is scripting autism?

1154