comp.lang.awk FAQ
This material of this faq originates from the comp.lang.awk FAQ that you can find there: * http://www.faqs.org/faqs/computer-lang/awk/faq/ . . . ---- == What is awk's exit code? <include "ExitCode"> [[http://awk.freeshell.org/?action=edit;id=ExitCode| . . .
8K - last updated 2009-03-04 12:42 UTC by pgas
ExitCode
Normally, the `exit' command exits with a value of zero. You can supply an optional numeric value to . . . to do something like this: {{{ awk BEGIN \ { exitcode=0; ... } # normal rules processing... { ... . . . if (fatal) { exitcode=12; exit(exitcode); } ... } END { if (exitcode!=0) . . . exit(exitcode); ... } }}} . . .
1K - last updated 2008-11-26 12:30 UTC by pgas
tracert.awk
{{{ awk #:: C:\_\_u\tracert.awk #: 2014-07-06 19:47:02 #:: rod.t_2014 #:: extract basename for tracert . . . cmd =", (_q)(s)_q); if((! _debug) || run) { _exitcode = _sysmul * system(s); } } END { t = "\n\tPress . . . t) > _con; getline < _con; exit(0 + _exitcode); } function _dequote(s, n) { #:: \042 " \043 . . . _debug=1"; print("\t_testf(): s =\n" s); exit(_exitcode = sysmul * system(s)); } function _env(s, . . .
4K - last updated 2014-07-07 06:15 UTC by 212.205.56.222
3 pages found.