What Are Positional Parameters in Unix?
Contents a Positional Parameter Is a Variable Within a Shell Program; Its Value Is Set from an Argument Specified on the Command Line That Invokes the Program...
A positional parameter is a variable within a shell program; its value is set from an argument specified on the command line that invokes the program. Positional parameters are numbered and are referred to with a preceding “$”: $1, $2, $3, and so on. A shell program may reference up to nine positional parameters.
What is the use of positional parameters in Linux?
Positional Parameters are used to pass the information to the shell directly with command line argument or indirectly using set and command substitution. It can be assigned from shell argument and it is denoted by $N, where N is the single digit and referred as parameter N. if N is double digit use braces ${N}.
Must Read
What are positional parameters in bash?
Positional parameters are the arguments given to your scripts when it is invoked. It could be from $1 to $N. When N consists of more than a single digit, it must be enclosed in a braces like ${N}. The variable $0 is the basename of the program as it was called.