I need to execute a command per line of some file. For example:
file1.txt 100 4
file2.txt 19 8
So my awk
script need to execute something like
command $1 $2 $3
and save the output of command $1 $2 $3
, so system()
will not work and neither will getline
. (I can't pipe the output if I do something like this.)
The restriction to this problem is to use only awk
. (i already had a solution with bashscriot + awk...but I only want awk...just to know more about this)