AWK:man awk对BEGIN的执行解释木有看懂
没有读懂加粗的这句话在说什么,是说BEGIN{aaa}{bbb}和BEGIN{aaabbb}是等价的意思吗?
BEGIN and END are two special kinds of patterns which are not tested against the input. The action parts of all BEGIN patterns are merged as if all the statements had been written in a single BEGIN block. They are executed before any of the input is read.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
BEGIN{aaa} BEGIN{bbb}
等价于BEGIN{aaa;bbb}