学习笔记
学习笔记
#!/bin/bash
funwithParam() {
echo "The first parameter is $1 !";
echo "The second parameter is $2 !";
echo "The tenth parameter is $10 !";
echo "The tenth parameter is ${10} !";
echo "The eleventh parameter is ${11} !";
echo "The total number of parameters is $# !";
echo "Outputs all parameter as a string $* !";
};
funwithParam 1 2 3 4 5 6 7 8 9 34 73;
还没有评论,来说两句吧...