I have to write a script, which will take all arguments and print them in reverse.
I\'ve made a solution, but find it very bad. Do you have a smarter idea?
bash:
#!/bin/bash for i in "$@"; do echo "$i" done | tac
call this script like:
./reverse 1 2 3 4
it will print:
4 3 2 1