title: How to expand $() inside find -exec command
body: <p>I have a mongodump which I want to import apparently I'm looking to do this using the <code>find</code> command. Something like this:</p>
  <pre><code>find *.bson -type f -exec echo mongoimport --db=abc --collection=$(echo '{}' | sed  s/.bson//g) {} \;
  </code></pre>
  <p>What I'm looking isn't get evaluate what I need is</p>
  <pre><code>mongoimport --db=abc --collection=a a.bson
  </code></pre>
  <p>but I'm getting is</p>
  <pre><code>mongoimport --db=abc --collection=a.bson a.bson
  </code></pre>
  <p>My version of using <code>sed</code> to strip the <code>.bson</code> suffix from <code>'{}'</code> isn't working.  I know its not a blocker but I felt if that is possible.</p>
  <p>Any suggestions?</p>