Re: Problem while executing "system " in awk



In article <bmdjq3-bm8.ln1@xxxxxxxxxxxxxxxxxx>,
Chris F.A. Johnson <cfajohnson@xxxxxxxxx> came up with an alternate idea in response to:
....
Please suggest why my system() command is not executing

Why not use:

/^9891/ || /^9811/ { print $1 >> substr($1,1,4) }

That doesn't answer the question about why the system() command did or
did not work as expected. Therefore, non-responsive.

.