Thanks for the advice guys. If I use SHIFT, won't that shift the rest of my inputs away. Meaning I will lose them. I was hoping to process the command line inputs without having to store them anywhere other than the $0-$9.
The last parameter ($#) is the value at which I need to process the...
My question is: How do I get the last value of a command line input.
to get the first one would be 1=$1
the second is 2=$2
How do I get the last?
Thanks for your help
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.