I want to access an argument from when the script was run, and I want to get the specific argument based on the variable. So I want to get the argument $2 but rather than typing two, I use the variable that contains a number
Something like this
FOO=2
echo $FOO
The problem is both variables and arguments both use $ so I don't know how to call an specific argument based on the number in the variable. I know I'm explaining this terribly, correct me if you can.