The tutorial you found is excellent. It never presents the execution of an external command line from within AWK. It is actually possible, using the "system" statement. You apparently only want to do do that (calling other AWK programs, which themselves call 'nmap', etc.). I very much doubt it is what you need. I also very much doubt you did the tutorial. You are basically asking (not with a correct syntax) to execute two AWK programs on fixed input files as many times as there are lines processed by the main AWK program. You probably only want to post-process the output of the main AWK program (not that I really understand what you try to achieve, though).

And before learning AWK, you should learn the basics of the Shell (redirections, piping, etc.).

Reply via email to