解決策を見つけましたが、機能しません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
次のコードのいずれかを使用できます。
$ tr '[:lower:]' '[:upper:]' < input.txt > output.txt
また
$ sed -e 's/\(.*\)/\U\1/' input.txt > output.txt
次のものを見つけました!そしてそれは動作します!
[spatel@mg0016 ~]$ echo "lower" | awk '{print toupper($0)}'
LOWER
返信ありがとうございます。