Having a list of CIDR ranges in a file. Some of them are not "well formed" in case of they are valid but some programs won't accept them.
Example: 192.168/24
Resolves to: 192.168.0.0/24
So, in this case it should be checked if there are 4 octets. If not, the script should apply .0 for each missing one.
1.1.1/24 becomes 1.1.1.0/24
2.2/16 becomes 2.2.0.0/16 ...
Thanks :-)