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'

 

相关文章:

  • 2021-04-28
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案