空格是合并两个字符串的字符串连接运算符。以下示例演示了这一点-
[Learnfk]$awk 'BEGIN { str1="Hello, "; str2="Learnfk"; str3=str1 str2; print str3 }'
在执行此代码时,您将获得以下输出-
链接:https://www.learnfk.comhttps://www.learnfk.com/awk/awk-string-concatenation-operator.html
来源:LearnFk无涯教程网
Hello, Learnfk
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)
Python实战 · 从0到1搭建直播视频平台 -〔Barry〕