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 do I run a bin bash script?

1037


What is the meaning of $1 in shell script?

1118


What is a command line shell?

1055


Why is used in shell scripting?

1002


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 ?

2162


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

2349


What is shell prompt?

1019


What is shift command in shell script?

1043


What happens on a system call?

1017


What are types of shells?

1028


What is bash coding?

930


write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?

4132


what is tickets $ what low,medium,high priorite pls define time also

2168


How to get the first line from a file using just the terminal?

1128


Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.

2668