This command saves the output of a scan. With Namp, you can save the scan output in different formats:
nmap -oN outputfile.txt 192.168.0.12