1) compile checker by running "make"
2) run "./script.sh" (with options you've described in the task description)
$ time ./script.sh
Parsing CIDRs... ok
Starting checker daemon...ok
Processing emails now
$ LANG=C wc -l email.txt.*
Checker was a speed-hack, because I said I finish this work in 24
hours. Some stuff is hardcoded. F.e. it uses "/tmp/checker.socket" and
it's not configurable.
Don't worry about 19s of real time. 14s is CIDR parsing:
Now it's your time to play with configuration options and workers number.
Btw I've added more options. Just look at the beginning of the script. It must be obvious.
These tools must be available in your system: bash getopt socat bc dig tr