title: Copy files with specific pattern recursively
body: <p>I want to copy recursively all files ending .pl  </p>
  
  <p>If I  <code>ls -R | grep -F .pl</code></p>
  
  <p>I can see all of them, however if I type any of the following commands I just get the *.pl files in the current directory</p>
  
  <p><code>cp -R *.pl</code></p>
  
  <p><code>find . | ls  *.pl</code></p>
  
  <p><code>ls -r | ls  *.pl</code></p>
  
  <p><code>ls -R | grep -F .pl</code> (with this one I get only a few)</p>
  
  <p>also if I want to scp copy with <code>scp -r  user@address:/directory/*.pl .</code>   I only get the files in the current directory</p>
  
  <p>with <code>find . -name \*.pl</code> I don't get all of them, only a few files</p>
  
  <p>How can I copy all files *.pl in all the subdirectories?</p>