title: How to list specific type of files in recursive directories in shell?
body: <p>How can we find specific type of files i.e. doc pdf files present in nested directories.</p>
  
  <p>command I tried:</p>
  
  <pre><code>$ ls -R | grep .doc
  </code></pre>
  
  <p>but if there is a file name like <code>alok.doc.txt</code> the command will display that too which is obviously not what I want.  What command should I use instead?</p>