title: Bash script: suming columns by unique name {name:number}
body: <p>not a native speaker so the best way to explain is to give example, of what I have to do.</p>
  <blockquote>
  <p>name1: 15</p>
  <p>name2: 20</p>
  <p>name1: 8</p>
  <p>name3: 30</p>
  </blockquote>
  <p>Now this is a short example of the output I get when greping from a file.
  Now I'm not sure how to handle suming of those numbers, so that the final solution is</p>
  <blockquote>
  <p>name1: 23</p>
  <p>name2: 20</p>
  <p>name3: 30</p>
  </blockquote>
  <p>There are several ways to solve this, and the only way I currently see is something involving Arrays, which I was told is not the best way to think about in Bash.</p>
  <p>Thank you for your help and sorry if the question has been asked before.</p>