This great tutorial by Baeldung shows 4 ways to process command-line arguments in bash, including: 1) positional parameters $1, $2, etc., 2) flags with getopts and ${OPTARG}, 3) looping over all parameters ($@), and 4) looping over all parameters using $#, $1, and the shift operator. – Gabriel Staples. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.