Hello!
I need to have the shell script attached ([login to view URL]) modified so that it will output/return only the IP addresses which hit on 3 or more blacklists and not the dnswl list.
The script will be run on the results of a command which will search a log file and parse out the IP addresses and then pipe them to the script something like "cat /var/log/maillog | grep {various commands} | sort -u ./[login to view URL] >> outfile.txt. The "[login to view URL]" file would end up containing all of the IPs which where listed in more than 3 blacklists and not the dnswl list.
I would also like to have the provision to add other whitelists in future in addition to the [login to view URL] list which would similarly result in an IP being excluded from the output if it was listed in one of the whitelists, even if it was also listed in multiple blacklists.
Btw, this is a bash shell script however a script which does the same job in perl or php would also be acceptable.
Thanks!