提交 dd2986ef 编写于 作者: cosmicing's avatar cosmicing

Update 31-AwkMatchReplace.sh

上级 e267e22e
......@@ -24,7 +24,7 @@ awk '!/TEST/{print $0;next} {match($0,/(.*\()(.*)(\).*)/,a);gsub(/ /, "_", a[2])
#命令:
#命令: toupper 将字符串转换为大写
awk '!/TEST/{print $0;next} {match($0,/(.*\()(.*)(\).*)/,a);gsub(/ /, "_", a[2]);print a[1] toupper(a[2]) a[3]}' 1.txt
#将:
TEST("switch case test 1 2 3") {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册