title: Bash script to list all IPs in prefix
body: <p>I'm trying to create script that I can input a set of prefixes, which will then list all IP addresses within the prefixes (including network/host/broadcast). </p>
  
  <p>An example would be:</p>
  
  <pre><code>./convert-prefix-to-IPs.sh 192.168.0.0/23 203.20.0.0/16
  192.168.0.0
  192.168.0.1
  ... 
  192.168.0.255
  192.168.1.0
  .. 
  192.168.1.255
  203.20.0.0
  ..
  203.20.255.255
  </code></pre>
  
  <hr>
  
  <p>There are some python/perl scripts which can do this, but I'm hoping to have a simple bash script, as it may be used on systems without perl/python (yes.. i know.. )</p>