Skip to content Skip to main navigation Skip to footer

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

0 Comments

There are no comments yet

Leave a comment

Your email address will not be published.