If I had understood you right

U have a shell:
You can try :
#nmap -the_right_keys SCANNED_NETS | grep "some ****" > log

than you'll have all you need in the log file

& don't forget :

man nmap
man grep