title: bash scripting challenge
body: <p>I need to write a bash script that will iterate through the contents of a directory (including subdirectories) and perform the following replacements:</p>
  
  <ul>
  <li>replace 'foo' in any file names with 'bar'</li>
  <li>replace 'foo' in the contents of any files with 'bar'</li>
  </ul>
  
  <p>So far all I've got is</p>
  
  <pre><code>find . -name '*' -exec {} \;
  </code></pre>
  
  <p>:-)</p>