21.07.2015 Views

GAWK: Effective AWK Programming

GAWK: Effective AWK Programming

GAWK: Effective AWK Programming

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

86 <strong>G<strong>AWK</strong></strong>: <strong>Effective</strong> <strong>AWK</strong> <strong>Programming</strong>Advanced Notes: Syntactic Ambiguities Between ‘/=’ and RegularExpressionsThere is a syntactic ambiguity between the ‘/=’ assignment operator and regexp constantswhose first character is an ‘=’. This is most notable in commercial awk versions. Forexample:$ awk /==/ /dev/nullerror awk: syntax error at source line 1error context iserror >>> /=

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!