摘要:
#!/bin/bashfunc(){local loc_var=23echoecho "\"loca_var\" in function = $loc_var"global_var=999echo "\"golbal_var\"in function=$global_var"}funcecho "\"loca_var\" in function = $loc_var"echo "\"golbal_... 阅读全文
摘要:
#!/bin/bashmonth_length(){monthD="31 28 31 30 31 30 31 31 30 31 30 31"echo "$monthD"|awk '{print $"'${1}'"}'}echo "INPUT MONTH:"read monthechodays_in=$(month_length $month)echo "The $month month days ... 阅读全文