How to output an individual element of "$@"? – unix.stackexchange.com

I have read that $@ is an array that holds the positional parameters. I have tried to output an element of the $@ array: echo ${@[1]} But bash is giving me this error: test.sh: line 1: ${@[1]}: ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "How to output an individual element of "$@"? – unix.stackexchange.com"