The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
how to check exit status in awk script
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
how to check exit status in awk script
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
1
(
permalink
)
06-24-2006
epall
Registered User
Join Date: May 2006
Posts: 18
how to check exit status in awk script
Hi,
I have a main program which have below lines
-
awk -f test.awk inputFileName
-
I wonder how to check status return from awk script.
content of awk script:
test.awk
---
if ( pass validation )
{
exit 1
}
else
{
exit 0
}
epall
View Public Profile
Find all posts by epall
Find epall's past nominations received
Find epall's present nominations given