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 non recursive shell script that accepts any number
of arguments and prints them in the reverse order

Answer Posted / naresh babu

echo "no of arguments:$#"
echo "arguments in reverse order:"
for i in $*
do
j=$i" "$j
done
echo $j

Is This Answer Correct ?    26 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between shell and bash scripting?

994


how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?

4075


What are the advantages of shell script?

1030


What is shell geeksforgeeks?

1117


How will you print the login names of all users on a system?

973


What is scripting used for?

1050


c program to display the information of given file similar to givan by the unix or linux command ls -l

2227


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

1165


shell script for reverse the string

1407


What are the different variables present in linux shell?

1113


Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.

1292


Why do we write bin bash in shell scripts?

1026


What command needs to be used to take the backup?

993


What is the purpose of scripting?

1091


What can scripts do?

1107