group_name='a b c d e f g' for a in $group_name; do typeset -u a ; echo "$a='$(echo $a | tr '[A-Z]' '[a-z]')'";done 执行结果: A='a' B='b' C='c' D='d' E='e' F='f' G='g'
group_name='a b c d e f g' for a in $group_name; do typeset -u a ; echo "$a='$(echo $a | tr '[A-Z]' '[a-z]')'";done 执行结果: A='a' B='b' C='c' D='d' E='e' F='f' G='g'