title: Replacing a part of file path in exec
body: <p>I would like to replace the part of each file path, which will be find by find linux command.
  My approach is attached below:</p>
  
  <pre><code>find . -type f -name "*.txt" -exec echo {} | sed "s/f/u/g" {} \;
  </code></pre>
  
  <p>I expect the replacement of each letter "f" with "u" in file path. Unfortunately I got this error:</p>
  
  <pre><code>find: missing argument to `-exec'
  sed: can't read {}: No such file or directory
  sed: can't read ;: No such file or directory
  </code></pre>
  
  <p>What I did wrong? Thank you for your help.</p>