摘要:
[root@pxc3 ~]# vi function8.sh#!/bin/bashtext="global variable"tj=91850use_local_var_fun(){ local text="local variable" echo "In function use_local_va 阅读全文
摘要:
#!/bin/bashshow_week(){ for day in Monday Tuesday Wednesday Thursday Friday Saturday Sunday do echo "$day " done} show_number(){ for (( i = 1; i <= 7; 阅读全文
摘要:
#! /bin/bashparameter=ind_argind_arg=Helloind_func(){ echo "$1"}ind_fun(){ echo "test!!!"}ind_func "$1"ind_func "$parameter"ind_func "${!parameter}"in 阅读全文