cat test-file.log |awk '{print $1,command executed on $1}'
Example - I am getting ipaddress in $1 - so I need to display output like
Address | Reverse dns lookup on the IP
8.8.4.4 | dns.google
$1 - is count of specific IP logged
$2 - is IP Address
$3 - modified to display - the reverse dns operation on $1
I am not able to do reverse lookup on the filed $2(IP address)
New contributor
DevOpsGuy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.