title: Find all files, then grep all files for those names
body: <p>I want to run a command on a directory to print out all files in that directory, then <code>grep</code> all files recursively for those found file names, basically to check and see if X file is used in any <code>PHP</code> or <code>HTML</code> files in a directory. If X file is found to NOT be in any files, print it's name.</p>
  
  <p>I have this so far, I can't figure out how to pass to <code>grep</code> what I have then print those without results.</p>
  
  <pre><code>find . -path ./images -prune -o -name '*' -type f -print | sed 's!.*/!!'
  </code></pre>
  
  <p>I could use <code>exec</code> as so:</p>
  
  <pre><code>find . -path ./images -prune -o -name '*' -type f -exec grep -R '{}' ./* \;
  </code></pre>
  
  <p>But then I can't <code>sed</code> away the <code>./dir/etc/</code> from in front of the file names that find gives me.</p>
  
  <p>The other part of the query that is perplexing me is I can't figure out how to get <code>grep</code> or find to print those without results in <code>grep</code>.</p>