title: How to filter files when using scp to copy dir recursively?
body: <p>I need to copy all the .class files from server to local with all dir reserved. e.g. <code>server:/usr/some/unknown/number/of/sub/folders/me.class</code> will be <code>/usr/project/backup/some/unknown/number/of/sub/folders/me.class</code> the problem is, there are many other useless files such as .svn-base files that i don't want. how can i filter them so I only <code>scp</code> .class files? </p>