[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk] Test return value of awk statement
From: |
Chris Jones |
Subject: |
[gawk] Test return value of awk statement |
Date: |
Sat, 24 Jan 2009 19:48:06 -0500 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
I'm trying to figure out how I can test the return value of a printf
statement in an awk script.
printf "format", variable
if (condition==bad) {exit 1} # if printf failed, exit
I have been unable to find what the "condition" in the pseudo-awk above
might be.
Or is it that awk's builtin's do not set a return value?
Thanks,
CJ
- [gawk] Test return value of awk statement,
Chris Jones <=