title: *nix way to Multiply lines after ','
body: <p>I have a text file that i need to adjust so i can input it into a database.</p>
  
  <p>However, the format of the file is, while consistent, not really usful when wanting to put them into tables.</p>
  
  <pre><code>allow any 123.123.123.1,2,3 22,443
  </code></pre>
  
  <p>what i need afterwards is something like </p>
  
  <pre><code>allow any 123.123.123.1 22
  allow any 123.123.123.1 443
  allow any 123.123.123.2 22
  allow any 123.123.123.2 443
  allow any 123.123.123.3 22
  allow any 123.123.123.3 443
  </code></pre>
  
  <p>Because the Text file is pretty old and more than 1000 lines long (one of the reasons i want to put it into our database) it would be very tideous to do it manually. </p>
  
  <p>Is there a short way to do this with text processing tools like sed, tr, etc.?</p>