The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 06-24-2006
epall epall is offline
Registered User
  
 

Join Date: May 2006
Posts: 18
Post 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
}