From what I”m looking at, both these achieve much the same thing
Mine: A much longer list… but still unknowns. grep unknown /var/log/postfix.log | grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" | sort -n | uniq > output.txt Pretty good… from Jerry. Very nice and very short list of unknowns. bzgrep -e auth=0/1 "/var/log/postfix.log" | sed 's/.*\[\([^]]*\)\].*/\1/g' | sort -V | uniq > "/tmp/Bad_IP.txt” intersting