convert ip ranges list to cidr
<p>I have file with such struct:</p>

<pre><code>08.176.250.200-108.176.250.219
108.176.251.40-108.176.251.163
108.176.254.212-108.176.254.215
108.176.254.216-108.176.255.87
108.177.224.0-108.177.225.255
108.179.0.32-108.179.0.87
108.179.0.192-108.179.0.255
108.179.4.0-108.179.4.255
108.179.13.0-108.179.13.255
108.179.18.0-108.179.18.15
108.179.18.16-108.179.19.255
108.179.25.0-108.179.25.255
108.179.32.16-108.179.33.255
108.179.42.64-108.179.42.255
</code></pre>

<p>How can I convert them to cidr and save to new file?</p>