Created
February 5, 2018 08:04
-
-
Save zhanggang807/5047714138c302bb223e654b2992ece2 to your computer and use it in GitHub Desktop.
shell function's parameter
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
echo use function hello | |
hello() | |
{ | |
echo how many parameters in the function:$#; | |
echo what parameters in the function $@; | |
echo the name of this function is $0; | |
echo the first parameters is :$1; | |
echo the second parameters is :$2; | |
echo the second parameters is :$3; | |
} | |
hello $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment