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

Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.

1068


What is awk script?

957


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

2197


What is c in shell script?

1054


Can we run shell script in windows?

1115


Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.

1139


What does it mean to debug a script?

1032


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

2771


What is an sh file?

921


How do I open the shell prompt?

1176


Differentiate between ‘ and ” quotes.

1143


What lives in a shell?

944


Explain about return code?

1058


What is the syntax of while loop in shell scripting?

1029


Explain about the exit command?

959