| Parameters | Function |
|---|---|
| $1-$9 | Represent positional parameters for arguments one to nine |
| ${10}-${n} | Represent positional parameters for arguments after nine |
| $0 | Represent name of the script |
| $∗ | Represent all the arguments as a single string |
| $@ | Same as $∗, but differ when enclosed in (“) |
| $# | Represent total number of arguments |
| $$ | PID of the script |
| $? | Represent last return code |
Example:

Look at the above snapshot, this is the script we have written to show the different parameters.

Look at the above snapshot, we have passed arguments 1, 5, 90. All the parameters show their value when script is run.
Leave a Reply