I am trying to create a directory that will house all and only my PDFs compiled from LaTeX. I like keeping each project in a separate folder, all housed in a big folder called LaTeX. So I tried running:
rsync -avn *.pdf ~/LaTeX/ ~/Output/
which should find all the pdfs in ~/LaTeX/ and transfer them to the output folder. This doesn't work. It tells me it's found no matches for "*.pdf". If I leave out this filter, the command lists all the files in all the project folders under LaTeX. So it's a problem with the *.pdf filter. I tried replacing ~/ with the full path to my home directory, but that didn't have an effect.
I'm, using zsh. I tried doing the same thing in bash and even with the filter that listed every single file in every subdirectory... What's going on here?
Why isn't rsync understanding my pdf only filter?
OK. So update: No I'm trying
rsync -avn --include="*/" --include="*.pdf" LaTeX/ Output/
And this gives me the whole file list. I guess because everything matches the first pattern...

**pattern) should work, though. – Marcel Stimberg Sep 29 '10 at 9:22