Last active
January 23, 2020 00:31
-
-
Save jesserobertson/65d978a52b2f9554af8f1095166faf6a to your computer and use it in GitHub Desktop.
Copy all PDFs recursively from a parent folder to the current folder in Powershell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $data_dir is some gnarly collection of folders | |
Get-ChildItem -Recurse $data_dir | | |
Where-Object { $_.Extension -eq '.pdf' } | | |
Copy-Item -Destination . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment