GAWK的兼容模式,传统模式

 

Gawk  is  the  GNU  Project’s implementation of the AWK programming language. 

 

-W posix

       --posix

              This turns on compatibility mode, with the following additional restrictions:

 

              · \x escape sequences are not recognized.

 

              · Only space and tab act as field separators when FS is set to a single space, newline does not.

 

              · You cannot continue lines after ?  and :.

 

              · The synonym func for the keyword function is not recognized.

 

              · The operators ** and **= cannot be used in place of ^ and ^=.

 

              · The fflush() function is not available.

-W -re-interval

--re-interval

 Enable the use of interval expressions in regular expression matching (see Regular Expressions, below).  Interval expressions were

 not traditionally available in the AWK language.  The POSIX standard added them, to make awk and egrep consistent with each other.

 However, their use is likely to break old AWK programs, so gawk only provides them if they are requested with this option, or when

 --posix is specified.

 

 

-W compat

       -W traditional

       --compat

       --traditional

              Run in compatibility mode.  In compatibility mode, gawk behaves identically to UNIX awk; none of the GNU-specific  extensions  are

              recognized.   The  use  of  --traditional  is  preferred over the other forms of this option.  See GNU EXTENSIONS, below, for more

              information.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值