title: Renaming files in directory with various endings on Mac?
body: <p>Trying to rename a set of files in a directory with various filetypes, all with one common word, say 'foo', to another word, say 'bar' on a MacBook Pro.</p>
  
  <p>E.g.:</p>
  
  <pre><code>foo.txt
  
  form_foo.plist
  
  home_foo.png
  
  images_foo.zip
  </code></pre>
  
  <p>-></p>
  
  <pre><code>bar.txt
  
  form_bar.plist
  
  home_bar.png
  
  images_bar.zip
  </code></pre>
  
  <p>Any ideas?</p>