Exit Value from Awk
Arnold Robbins
arnold at audiofax.com
Thu Jul 19 02:21:22 AEST 1990
In article <1990Jul17.203037.22283 at ccu.umanitoba.ca> mills at ccu.umanitoba.ca (Gary Mills) writes:
>Does anyone know how to set the exit code from awk within an awk
>script?
Yes. Simply say
exit <expression>
in the action part of a rule. The value of <expression> will be the
exit value of awk itself. The expression is optional, in which case awk
will exit with 0. This works on all variants of awk.
--
Arnold Robbins AudioFAX, Inc. | Laundry increases
2000 Powers Ferry Road, #220 / Marietta, GA. 30067 | exponentially in the
INTERNET: arnold at audiofax.com Phone: +1 404 933 7600 | number of children.
UUCP: emory!audfax!arnold Fax: +1 404 933 7606 | -- Miriam Robbins
More information about the Comp.unix.questions
mailing list