Linux

Shell常见问题

Shell大小写转换

# 使用tr转换大写
echo 'aBcDeFg'|tr [a-z] [A-Z]
echo 'aBcDeFg'|tr [A-Z] [a-z]