目录

awk字符串连接操作符(String Concatenation Operator)

Space是一个字符串连接运算符,它合并两个字符串。 以下示例演示了这一点 -

例子 (Example)

[jerry]$ awk 'BEGIN { str1 = "Hello, "; str2 = "World"; str3 = str1 str2; print str3 }'

输出 (Output)

执行此代码时,您将获得以下结果 -

Hello, World
↑回到顶部↑
WIKI教程 @2018