title: sed command inserting text - bash
body: <p>I am exploring sed function</p>
  
  <p>what I have here is a simple text file shown below</p>
  
  <p>Id,fruit name and quantity. now I want to add the amount of the fruit behind the quantity of each fruit respectively </p>
  
  <p>fruit.txt</p>
  
  <pre><code>1,apple
  2,banana
  </code></pre>
  
  <p>how to make it become like this.</p>
  
  <p>expected output</p>
  
  <p>first input of sed command</p>
  
  <p>my textfile(fruit.txt) will become like this</p>
  
  <pre><code>1,apple,50
  2,banana,40
  </code></pre>