Bash: Scripts with parameters, a straightforward approach
A straightforward way to use parameters in a Bash script is to execute the script with the parameters values listed after the script file name and to use these values in the script via ${1}..${n}
variables, where n is the number of the parameters.