$# The number of arguments.
$@ All arguments, as separate words.
$* All arguments, as one word.
$$ ID of the current process.
$? Exit status of the last command.
$0,$1,..$9,${10},${11}…${N} Positional parameters. After “9″ you must use the ${k} syntax.
For example, if you create a shell script as follows :
#!/bin/shNow if you execute it, then you will find that it will print the program 'test.sh' process ID.
#File: test.sh
echo $$
No comments:
Post a Comment