title: Remove whitespaces from filenames in Linux
body: <p>I have hundreds of jpg files in different folders like this:</p>
  
  <ul>
  <li>304775 105_01.jpg</li>
  <li>304775 105_03.jpg</li>
  <li>304775 105_05.jpg</li>
  <li>304775 105_07.jpg</li>
  <li>304775 105_02.jpg</li>
  <li>304775 105_04.jpg</li>
  <li>304775 105_06.jpg</li>
  </ul>
  
  <p>Basically, I need to remove the SPACES. I already know the command to change the spaces into underscores:</p>
  
  <pre><code>$ rename "s/ /_/g" *
  </code></pre>
  
  <p>But I do not need the underscores in this case. I just need to remove the space. I tried the following, but it didn't work:</p>
  
  <pre><code>$ rename "s/ //g" *
  </code></pre>
  
  <p>Any help would be appreciated.</p>