How to get the nth positional argument in Bash, where n is variable?
n
Read
Handling positional parameters
and
Parameter expansion
$0: the first positional parameter
$1 ... $9: the argument list elements from 1 to 9