如何获得字母表的 ASCII 值?
例如,97对于a?
97
a
bash ascii bash-script
如何检查变量是否在 [AZ] 中?
我想实现这样的目标:
read var while [ $var in [A-Z] ] do #code here done
我如何实现这一目标?
bash shell-script
bash ×2
ascii ×1
bash-script ×1
shell-script ×1