title: Bash: execute a command on all files with extension recursively
body: <p>I'm trying to use the following command:</p>
  
  <pre><code>herbalizer file_name.haml &gt; file_name.erb
  </code></pre>
  
  <p>Here the <code>file_name.haml</code> is the file name, obviously.</p>
  
  <p>How can I apply this command to all <code>haml</code> files in current directory recursively to all sub-directories? Filename should stay the same as mentioned above, so applying on <code>abc.haml</code> would be <code>herbalizer abc.haml &gt; abc.erb</code></p>
  
  <p>So far: <code>find . -type f -exec herbalizer {} \;</code></p>