Created
July 18, 2014 05:35
-
-
Save hmngwy/fdddc4d819bb3c88cda9 to your computer and use it in GitHub Desktop.
SH Copy Files by Extension, Maintain Directory Structure
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
find /source -regextype posix-extended -regex '.*(png|jpg)' \ | |
-exec cp --parents {} /dest \; -print |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment