shell: linux variables $#,$@,$0,$1,$2,$*,$$,$?

Shell

#!/bin/sh
echo "number:$#>"
echo "scname:$0>"
echo "first :$1>"
echo "second:$2>"
echo "argume:$@>"
echo "show parm list:$*>"
echo "show process id:$$>"
echo "show precomm stat: $?>" 

原文:http://www.0550go.com/script/shell/linux-variables-012.html

You might also like:

Sidebar