nmap_pcomunes_il.txt.gz

gunzip -c nmap_pcomunes_il.txt.gz | grep -E '^[0-9].*(closed|open)' | awk '{print $1,$2,$3}' | sort | uniq
22/tcp closed ssh
22/tcp open tcpwrapped
3306/tcp closed mysql
3306/tcp open tcpwrapped
443/tcp open ssl/http
443/tcp open ssl/https
443/tcp open ssl/tcpwrapped
443/tcp open tcpwrapped
8080/tcp closed http-proxy
8080/tcp open http-proxy
8080/tcp open tcpwrapped
80/tcp closed http
80/tcp open http
80/tcp open tcpwrapped