开发者社区 问答 正文

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.

展开
收起
a123456678 2016-06-27 11:02:57 2021 分享 版权
1 条回答
写回答
取消 提交回答
  • BEGIN{aaa} BEGIN{bbb}等价于BEGIN{aaa;bbb}

    2019-07-17 19:47:23
    赞同 展开评论
问答分类:
问答地址: