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

c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command

5329


How do you know which shell I am using?

984


How do I run a script from command prompt?

997


How to get the 3rd element/column from each line from a file?

1143


How many fields are present in a crontab file and what does each field specify?

1057


How to find all the files modified in less than 3 days and save the record in a text file?

1006


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

977


What are the disadvantages of shell scripting?

1121


What is difference between bash and shell?

1010


What is shell scripting used for?

933


What is console line?

921


What can scripts do?

1047


Write the syntax for "if" conditionals in linux?

1051


What happens on a system call?

950


What is a beat in a script?

981