我找到了解决方案,但它不起作用http://www.cyberciti.biz/faq/linux-unix-shell-programming-converting-lowercase-uppercase/
[root@mg0016 tmp]# y="this Is A test"
[root@mg0016 tmp]# echo "${y^^}"
-bash: ${y^^}: bad substitution
我找到了解决方案,但它不起作用http://www.cyberciti.biz/faq/linux-unix-shell-programming-converting-lowercase-uppercase/
[root@mg0016 tmp]# y="this Is A test"
[root@mg0016 tmp]# echo "${y^^}"
-bash: ${y^^}: bad substitution