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 write a function?

1025


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

2782


Can we run shell script in windows?

1127


What is awk in shell scripting?

1012


What is a shell script? Can you name some of its advantages?

1049


What is the best scripting language?

1017


What will happen to my current process when I execute a command using exec?

1040


What is the use of break command?

1101


What is shell application?

984


What is k shell?

940


Is shell scripting difficult?

945


What is the default shell of solaris?

1038


Which shell is the best?

986


What is a file basename?

1039


How to print the first array element?

1027