title: How to run a subcommand inside find exec
body: <p>How can I run a subcommand inside find's exec?
  For example, if I want to get the filename only from the full path and print it, I would fire,</p>
  
  <pre><code>find ./ -name "*.csv" -exec echo $(basename {}) \;
  </code></pre>
  
  <p>where the echo is parent command of child command basename.</p>
  
  <p>But the result is same as this,</p>
  
  <pre><code>find ./ -name "*.csv" -exec echo {} \;
  </code></pre>
  
  <p>What should I do ?</p>