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

What is the default ubuntu terminal?

1128


What is the purpose of scripting?

1086


How to write a function?

1035


What are the advantages of shell scripting?

1045


What are the two files of crontab command?

1235


How do I run a shell script on a mac?

1125


What does chmod do?

1187


How would you compare the strings in a shell script?

985


How can you get the value of pi till a 100 decimal places?

970


Where is bash history?

926


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

1053


How does shell scripting work?

1113


What is @echo off?

1020


How do I run a powershell script?

1139


What is shell company all about?

982