hmm ... well looking at that it may almost pay to do your for loop actions all in awk.
What i mean is that you could have awk do the work and then call jwhois only for the lines that are necessary.
So are these line:
Quote:
2010-04-30 11:05:10,ICMP Echo Reply,Possible harmful network activity detected,3,<IP address>
|
Coming from the sql files?
Essentially i was thinking along the lines of:
Code:
awk -F, 'NF==5{<do jwhois>}' cvsfile >newcvsfile
This would then only perform the changes on the required lines.