Just a few i have come up with over the years. if its a range you want to scan
nmap -sn -n -oG - x.x.x.0/24 | awk ‘/Up/{print $2}’ > list.txt && nmap -v -A -Pn -n -iL list.txt > list_scan.txt
if its just an IP you want to scan
nmap -v -A -Pn -n x.x.x.x > file
i always tend to output to a file