title: one space remains but more than 1 spaces removed in linux
body: <p>I have below values in  my text file:</p>
  <pre><code>, 2,
  
  ,                2,
  </code></pre>
  <p>I want to change it as if more than one spaces exits removed the value, but for one space the value remains:</p>
  <pre><code>, 2,
  </code></pre>
  <p>and also the second want removed.
  do any one has an idea ? I have below code and this code doesn't consider one space or more than one space.</p>
  <pre><code>BEGIN{
    RS=&quot;^$&quot;
  }
  {
    gsub(/[[:space:]]+[2]+,/,&quot;&quot;)
    gsub(/[[:space:]]+[3]+,/,&quot;&quot;)
    $1=$1
  }
  1
  </code></pre>