This command scans to see if port 22 is open within a network range and saves the output to nmapscan.txt.

nmap -p 22 -oN nmapscan.txt 172.29.16.0/22