fatal: not enough arguments to satisfy format string `%s SPT=80\' ^ ran out for this one
This my code
for ((h = 1 ; h <
The problem is a missing comma in the printf command for awk:
printf
awk
awk -v i=h -v j=17 'FNR == 2 {printf "%s ", $j}' newiptables.log ^ |== This is needed
Quoting from the manual:
A simple printf statement looks like this: printf format, item1, item2, ...
A simple printf statement looks like this:
printf format, item1, item2, ...