title: Mass replace characters in filenames from terminal?
body: <p>I have about 50 files in a directory that contain spaces, apostrophes, etc. How can I go about mass-renaming them to remove the apostrophes and replaces spaces with underscores?</p>
  
  <p>I can do </p>
  
  <pre><code>ls | grep '*.txt' | xargs ....
  </code></pre>
  
  <p>but I'm not sure what to do in the xargs bit</p>