Path: utzoo!attcan!uunet!decwrl!sdd.hp.com!hplabs!hpl-opus!steinbac From: steinbac@hpl-opus.HP.COM (Gunter Steinbach) Newsgroups: comp.unix.questions Subject: Re: Exit Value from Awk Message-ID: <63720021@hpl-opus.HP.COM> Date: 18 Jul 90 16:04:34 GMT References: <1990Jul17.203037.22283@ccu.umanitoba.ca> Organization: HP Labs, High Speed Electronics Dept., Palo Alto, CA Lines: 14 On p. 50 of the awk bible "The AWK programming Language", by A., W., and K. themselves, it says that the statement "exit " will return as the program's exit value. I tried it with things like awk 'END {exit 1}' < /dev/null || print "ok" and it works. I highly recommend the book, by the way. Addison-Wesley is the publisher. (This was "awk" on HP-UX 6.5 on an HP9000/350 work station.) Good luck - Guenter Steinbach gunter_steinbach@hplabs.hp.com