Created
January 11, 2018 05:00
-
-
Save lukesmurray/bff51d876f6d3e610a291b864d4a9bd7 to your computer and use it in GitHub Desktop.
Copy all the images and videos from a file directory recursively to a single target folder
This file contains 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
find . -type f -exec file -I {} + | rg 'video|image' | cut -d':' -f1 | xargs -I '{}' cp '{}' ~/Desktop/target_folder/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment