Using the grep function of nmap we can filter out only the hosts that have a particular port opened, while ignoring the others.