1

Filter NMAP IP address outputs using sed & awk

view story
linux-howto

http://www.unix.com – Trying to learn a couple of new things, how would I go about filtering this file just to display the IP addresses ie. 192.168.1.1 to a file using send and awk and remove all the other information? Code: Host is up (0.26s latency). Nmap scan report for des-xx.xx.xx.xx.lo.cal.c.class (192.168.1.1) Host is up (0.26s latency). Nmap scan report for des-xx.xx.xx.xx.lo.cal.c.class (192.168.1.2) Host is up (0.26s latency). Nmap scan report for des-xx.xx.xx.xx.lo.cal.c.class (192.168.1.4) Host is up (0.26s latency). Nmap scan report for des-xx.xx.xx.xx.lo.cal.c.class (192.168.1.6) Host is up (0.2 ()