Shell Built in Variables | Meaning |
$# | Number of command line arguments. Useful to test no. of command line args in shell script. |
$* | All arguments to shell |
$@ | Same as above |
$- | Option supplied to shell |
$$ | PID of shell |
$! | PID of last started background process (started with &) |
$1 = 5
$2 = "My Name"
没有评论:
发表评论