I have a directory containing a large number of PDF files, some of which are in subdirectories (which can extend several layers deep). I would like to move all files matching *.pdf into a single output folder named papers.
How can I do this?
|
I have a directory containing a large number of PDF files, some of which are in subdirectories (which can extend several layers deep). I would like to move all files matching How can I do this? |
|||
|
If you use
|
|||
|
Here's a test I did
Notice the file "aaa bbb.pdf".
|
|||||||||
|
(similar to another answer but I prefer pipe/xargs/mv ... more intuitive for me) FYI, I did the above one-line script successfully on multiple directories and multiple pdf files. |
|||||||
|
|
For the Windows command line (cmd.exe), you can use:
|
|||
a/x.pdfandb/x.pdf? – Colonel Panic Sep 20 '12 at 19:00