1
2
3
4
5
#!/bin/sh
grep -Eo "[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}\.[[:digit:]]{1,3}" /usr/local/psa/var/log/maillog |
    while read i;do
    echo $i
done