Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How can I exit from BEGIN?

5 views
Skip to first unread message

bolta...@yahoo.co.uk

unread,
Oct 30, 2009, 7:44:24 AM10/30/09
to
Hi

I have a BEGIN section that does some checks first then needs to exit the
script if they fail. However exit() just causes the BEGIN section to exit
and it continues in the main section. I could obviously just set a variable
thats check in the main and END sections but this is a bit messy. Is there
a way of forcing the script to terminate in BEGIN?

Thanks

B2003


Erhard Wagner

unread,
Dec 28, 2009, 11:08:13 AM12/28/09
to
Hello,

any other importend information?
OS ?
AWK version ?
etc. ?

0 new messages