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
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
How do you know which shell I am using?
How do I run a script from command prompt?
How to get the 3rd element/column from each line from a file?
How many fields are present in a crontab file and what does each field specify?
How to find all the files modified in less than 3 days and save the record in a text file?
What will happen to my current process when I execute a command using exec?
What are the disadvantages of shell scripting?
What is difference between bash and shell?
What is shell scripting used for?
What is console line?
What can scripts do?
Write the syntax for "if" conditionals in linux?
What happens on a system call?
What is a beat in a script?