thanks vgersh99.... piping output to shell...how clever!
now, i'm trying to remove certain IPs so I'm using this:
awk '$5 !~ /192.168.1.1/ {print "whois " $5}' pfirewall.log | sh
This works fine. Next, I want to start on row 6. This is where I have a problem:
awk 'NR==6,NR==100000 $5 !~...
Hi,
I'm trying to pipe info from awk to whois. Basically, I want a list of organizations that are accessing my server. When I do this:
$ awk '{print $5}' temp.log
199.71.0.43
$ awk '{print $5 | "wc"}' temp.log
1 1 12
$ awk '{print $5 | "whois"}' temp.log
I just get the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.