Created
March 29, 2023 15:21
-
-
Save kraken-chris/d01e47ec432077525041b2d640540624 to your computer and use it in GitHub Desktop.
Given a directory containing multiple directories each with files within, move the images to a single directory with no nested directories.
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 TargetDirectory/ -mindepth 2 -type f -exec mv -i '{}' TargetDirectory/ ';' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment