$ nmap -n -iR 0 -sL > RANDOM-IPS-TMP.txt
$ grep -o "[0-9]\.[0-9]*\.[0-9]*\.[0-9]*" RANDOM-IPS-TMP.txt |
egrep -v "10.*|172.[16-32].*|192.168.*|[224-255]." > RANDOM-IPS.txt
egrep: Invalid range end
$
How can I generate random IP Addresses outside the private IP address range and the multicast IP Address range?