Linux: shell base (III): Location parameter variables

Location parameter variables:

 

$ N: n is a number, $ 0 for the command itself, $ 1- $ 9 represents the first to ninth parameter, the parameter needs to contain ten or more braces, such as $ (10)

 

$ *: On behalf of all the command line parameters, $ * all parameters as a whole

 

$ @: On behalf of all the command-line parameters, but each parameter $ @ to distinguish treatment

 

$ #: The number of representatives of all the parameters of the command line

 

 

Look at these meanings, and what can not understand. We'd better write a shell file, test, understanding will be more profound.

Guess you like

Origin www.cnblogs.com/rtczza/p/11774615.html