Skip to content

Instantly share code, notes, and snippets.

@kraken-chris
Created March 29, 2023 15:21
Show Gist options
  • Save kraken-chris/d01e47ec432077525041b2d640540624 to your computer and use it in GitHub Desktop.
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.
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