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 are the four fundamental components of every file system on linux?

1673


How to get script name inside a script?

1000


What is sed in shell script?

1039


How can you find out how long the system has been running?

898


What is a shell environment?

988


What is the first line in every perl script called?

1039


What is a command line shell?

1040


How will you pass and access arguments to a script in linux?

1143


How do I open the shell prompt?

1185


Determine the output of the following command: [ -z “” ] && echo 0 || echo 1

987


Write a script to print the first 10 elements of fibonacci series.

2336


wats the deinitions for shell utility and filter?

2314


Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?

2148


What is the way to do multilevel if-else's in shell scripting?

1291


What is shell and terminal?

991