Both of your solutions save the output of the C program to disk before processing with the AWK script. I wish this was an option, but the AWK script is running on a small, embedded device with extremely limited DOC (Disk On Chip) memory.
In fact, I didn't mention this before, but the main...
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.