I am currently writing something to parse some apache logs, yet the system command seems to be putting itself above print. Haven't done a whole lot with awk, so it could be something very simple.IFS=$'\n' for ja in `cat test.apache.access_log | awk '{print $1}' | sort -n | uniq -c | sort -rn | head -3`do echo $ja|awk '{print Count\tIP\t\tNSLookup}{print $1\t,$2,\t\t,system(nslookup  $2|grep name)}'doneWhat I get :Count   IP              NSLookupRR.ZZ.YY.XX.in-addr.arpa      name = ja.server.net.241      XX.YY.ZZ.RR           0 What I would like to see is:Count   IP              NSLookup241      XX.YY.ZZ.RR          RR.ZZ.YY.XX.in-addr.arpa      name = ja.server.net. 
AWK output help
awk