title: Shell using sed to remove file extension from find results
body: <p>I am trying to run </p>
  
  <pre><code>find . \ -type f -name "*.sh" -exec basename {} \; | sed "s/.sh/ "
  </code></pre>
  
  <p>to display all files in the currenty directoy, and subdirectories, that end in .sh.  I use <code>-exec basename {}</code> to remove the location of the file, so I just get the filenames themselves.  The find command is working fine, but when i pipe it into <code>sed "s/.sh/ "</code> I get an error message <code>sed: 1: "s/.sh/ ": unterminated substitute in regular expression</code>.  I am trying to replace the <code>.sh</code> extension with nothing, so I just get filenames.</p>