title: Batch Convert IP Addresses into Decimals?
body: <p>I have a large file that contains 2 <code>IPs</code> per line - and there's about 3 million lines total.</p>
  
  <p>Here's an example of the file:</p>
  
  <pre><code>1.32.0.0,1.32.255.255
  5.72.0.0,5.75.255.255
  5.180.0.0,5.183.255.255
  222.127.228.22,222.127.228.23
  222.127.228.24,222.127.228.24
  </code></pre>
  
  <p>I need to convert each <code>IP</code> to an <code>IP Decimal</code>, like this:</p>
  
  <pre><code>18874368,18939903
  88604672,88866815
  95682560,95944703
  3732923414,3732923415
  3732923416,3732923416
  </code></pre>
  
  <p>I'd prefer a way to do this strictly via command line.  I'm okay with <code>perl</code> or <code>python</code> being used, as long as it doesn't require extra modules to be installed.</p>
  
  <p>I thought I had come across a way that someone converted <code>IPs</code> like this using <code>sed</code> but can't seem to find that tutorial anymore.  Any help would be appreciated.</p>