Accessing all variables passed to a shell script from a given index
Posted
by Robert Munteanu
on Server Fault
See other posts from Server Fault
or by Robert Munteanu
Published on 2010-04-19T14:15:43Z
Indexed on
2010/04/19
14:23 UTC
Read the original article
Hit count: 299
shell
How can I access the values within $@
starting from the third one? Right now I'm passing them from three to nine, but I think theres a better way:
while getopts ":n" opt "$3 $4 $5 $6 $7 $8 $9"; do
© Server Fault or respective owner