title: row sum with awk followed by a transformation
body: <p>I have this:</p>
  <pre><code>.2 .5
  .1 .1
  .3 .3
  </code></pre>
  <p>I want two columns of results:</p>
  <p>one column for the sum of each row</p>
  <p>second column for 1 - the sum of each row when the sum is greater than .5</p>
  <pre><code>.7 .3
  .2 .2
  .6 .4
  </code></pre>
  <p>I know how to get the row sum column:</p>
  <pre><code>awk '{for(i=1;i&lt;=NF;i++) t+=$i; print t; t=0}'
  </code></pre>
  <p>not sure how to get the second column (in the same awk one liner if possible)</p>
  <p>Any advice is greatly appreciated, thank you!</p>