Last active
March 24, 2020 13:48
-
-
Save xiangzhuyuan/b0bc6136c293d0b76775eac708b9ef78 to your computer and use it in GitHub Desktop.
the list of bash default var
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
printf "The complete list is %s\n" "$$" | |
printf "The complete list is %s\n" "$!" | |
printf "The complete list is %s\n" "$?" | |
printf "The complete list is %s\n" "$*" | |
printf "The complete list is %s\n" "$@" | |
printf "The complete list is %s\n" "$#" | |
printf "The complete list is %s\n" "$0" | |
printf "The complete list is %s\n" "$1" | |
printf "The complete list is %s\n" "$2 | |
$ bash params.sh 123456 QQ | |
The complete list is 24249 | |
The complete list is | |
The complete list is 0 | |
The complete list is 123456 QQ | |
The complete list is 123456 | |
The complete list is QQ | |
The complete list is 2 | |
The complete list is params.sh | |
The complete list is 123456 | |
The complete list is QQ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment