Thanks Rob! Finally get what I want.
Nmap -O -p T:22,25,139 172.16.xx.* | awk '/report for|Running:/'
And the desired output comes. Cheers!
And may I have few more questions that I'm trying to using port 22,25,139 instead of -F to search and the outcome is fast but not stable. For example, I...