title: File Manipulation in UNIX - Creating duplicate records based on the count from a column and manipulating only one column
body: <p>
  I have a space delimited file.txt with n number of columns. 3rd column in the file.txt is comma delimited, and I want to create duplicate records in same file.txt based on the number of counts in column(n=3) by splitting the comma delimited column with each value.</p>
  
  <p>--file.txt</p>
  
  <p>I have 0,1,2,3 apples</p>
  
  <p>I have 2,3 bananas</p>
  
  <p>I have 3 oranges</p>
  
  <p>--desiredoutput.txt</p>
  
  <p>I have 0 apples</p>
  
  <p>I have 1 apples</p>
  
  <p>I have 2 apples</p>
  
  <p>I have 3 apples</p>
  
  <p>I have 2 bananas</p>
  
  <p>I have 3 bananas</p>
  
  <p>I have 3 oranges</p>