I'm using AWK to parse the output of an executable program written in C. In some circumstances, the C program will terminate with an error and return a non-zero value. In regular shell scripting you could always check the value of the $? variable to see if it was non-zero, and then branch...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.