scp folder structure and only files with a specific extension <p>I have a huge folder structure with deep subfolders, and inside these folders there is files with different extensions (<code>.txt, .pdf, ...</code>).</p> <p>what i want to do is to copy the whole folder structure along with the files with only the <code>.pdf</code> extension.</p> <p>I'm using <code>scp</code> but there is no option to specify which extension to copy.</p> <p>i tried <code>rsync</code> with exclude and include options but it also did not worked and the shell window forze</p> <p>P.S: I'm on <code>MacOSX</code> Mountain Lion and i'm trying to copy from <code>Fedora</code> 16</p> <p>what is the best way to do this ?</p>