21.07.2015 Views

GAWK: Effective AWK Programming

GAWK: Effective AWK Programming

GAWK: Effective AWK Programming

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

118 <strong>G<strong>AWK</strong></strong>: <strong>Effective</strong> <strong>AWK</strong> <strong>Programming</strong>awk -f myprog -- -v -d file1 file2 ...This is not necessary in gawk. Unless ‘--posix’ has been specified, gawk silently putsany unrecognized options into ARGV for the awk program to deal with. As soon as it seesan unknown option, gawk stops looking for other options that it might otherwise recognize.The previous example with gawk would be:gawk -f myprog -d -v file1 file2 ...Because ‘-d’ is not a valid gawk option, it and the following ‘-v’ are passed on to the awkprogram.

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

Saved successfully!

Ooh no, something went wrong!