The Unix shell is used to run commands, and it allows users to pass run time arguments to these commands.
These arguments, also known as command line parameters, that allows the users to either control the flow of the command or to specify the input data for the command.
While running a command, the user can pass a variable number of parameters in the command line.
Within the command script, the passed parameters are accessible using ‘positional parameters’. These range from $0 to $9, where $0 refers to the name of the command itself, and $1 to $9 are the first through to the ninth parameter, depending on how many parameters were actually passed.
Example:
$ sh hello how to do you do
Here $0 would be assigned sh
$1 would be assigned hello
$2 would be assigned how
And so on