Hello, I was wondering if it were possible to call arguments passed to a script using a variable.
For example:
sh script.sh yes no good bad
x=$#
while [ x -gt 0 ]
do
echo (last argument, then second last etc until first argument)
let x=($x-1)
done
should print out
bad
good
no
yes
Thanks for any help with this:D