很简单,写个循环 if [ $# -eq 0 ] ##判断参数是否存在thenexit ##不存在退出else for a in $* ##存在话,取参数放入a中循环dob=`echo $a|tr [a-z] [A-Z]` ###将a改成大写echo "CC"$b ##拼接成功CCAdonefi