Skip to content

Instantly share code, notes, and snippets.

@zhanggang807
Created February 5, 2018 08:04
Show Gist options
  • Save zhanggang807/5047714138c302bb223e654b2992ece2 to your computer and use it in GitHub Desktop.
Save zhanggang807/5047714138c302bb223e654b2992ece2 to your computer and use it in GitHub Desktop.
shell function's parameter
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