title: BASH How to get minimum value from each row
body: <p>I have csv file like this:</p>
  <pre><code>-0.106992, -0.106992, -0.059528, -0.059528, -0.028184, -0.028184, 0.017793, 0.017793, 0.0, 0.220367
  -0.094557, -0.094557, -0.063707, -0.063707, -0.020796, -0.020796, 0.003707, 0.003707, 0.200767, 0.200767
  -0.106038, -0.106038, -0.056540, -0.056540, -0.015119, -0.015119, 0.032954, 0.032954, 0.237774, 0.237774
  -0.049499, -0.049499, -0.006934, -0.006934, 0.026562, 0.026562, 0.067442, 0.067442, 0.260149, 0.260149
  -0.081001, -0.081001, -0.039581, -0.039581, -0.008817, -0.008817, 0.029912, 0.029912, 0.222084, 0.222084
  -0.046782, -0.046782, -0.000180, -0.000180, 0.030788, 0.030788, 0.075928, 0.075928, 0.266452, 0.266452
  -0.082107, -0.082107, -0.026791, -0.026791, 0.001874, 0.001874, 0.052341, 0.052341, 0.249779, 0.249779
  </code></pre>
  <p><a href="https://i.stack.imgur.com/hxBqF.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>I want to get the minimum value from each row.</p>
  <p>Expected output must be:</p>
  <p>-0.106992</p>
  <p>-0.094557</p>
  <p>-0.106038</p>
  <p>-0.049499</p>
  <p>-0.08100</p>
  <p>-0.046782</p>
  <p>-0.082107</p>
  <p>I tried get it by awk but awk doesn't give minimum values:</p>
  <p>awk command:</p>
  <pre><code>awk '{m=$1; for (i=2; i&lt;=NF; i++) if ($i &lt; m) m = $i; print m}' file_name
  </code></pre>
  <p>output:</p>
  <p>-0.028184,</p>
  <p>-0.020796,</p>
  <p>-0.015119,</p>
  <p>-0.006934,</p>
  <p>-0.008817,</p>
  <p>-0.000180,</p>
  <p>-0.026791,</p>