加入收藏 | 设为首页 | 会员中心 | 我要投稿 网站开发网_马鞍山站长网 (https://www.0555zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长百科 > 正文

awk - Unix, Linux Command---reference

发布时间:2021-01-29 04:45:02 所属栏目:站长百科 来源:网络整理
导读:副标题#e# http://www.tutorialspoint.com/unix_commands/awk.htm gawk - pattern scanning and processing language gawk?[?POSIX?or?GNU?style options ]?-f? program-file ?[?--?] file ...?gawk?[?POSIX?or?GNU?style options ] [?--?]? program-text ?

This allows?gawk?to find the?.mo?file associated with your program. Without this step,?gawk?uses the?messages?text domain,which likely does not contain translations for your program.

myprog.po?to generate a.po?file for your program.The internationalization features are described in full detail in?GAWK: Effective AWK Programming.

A primary goal for?gawk?is compatibility with the?POSIX?standard,as well as with the latest version of?UNIX?awk. To this end,?gawk?incorporates the following user visible features which are not described in the?AWK?book,but are part of the Bell Laboratories version of?awk,and are in the?POSIX?standard.

The book indicates that command line variable assignment happens when?awk?would otherwise open the argument as a file,which is after the?BEGIN?block is executed. However,in earlier implementations,when such an assignment appeared before any file names,the assignment would happen?before?the?BEGIN?block was run. Applications came to depend on this ‘‘feature.’’ When?awk?was changed to match its documentation,the?-v?option for assigning variables before program execution was added to accommodate applications that depended upon the old behavior. (This feature was agreed upon by both the Bell Laboratories and the?GNU?developers.)

The?-W?option for implementation specific features is from the?POSIX?standard.

When processing arguments,?gawk?uses the special option ‘‘--’’ to signal the end of arguments. In compatibility mode,it warns about but otherwise ignores undefined options. In normal operation,such arguments are passed on to the?AWK?program for it to process.

(编辑:网站开发网_马鞍山站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!