Skip to content

Instantly share code, notes, and snippets.

@nicoxxxcox
Created April 21, 2024 09:08
Show Gist options
  • Save nicoxxxcox/b6478dbf38671f3ecc809c6eccbc65e3 to your computer and use it in GitHub Desktop.
Save nicoxxxcox/b6478dbf38671f3ecc809c6eccbc65e3 to your computer and use it in GitHub Desktop.
Move only files recursively from multiple directories into one directory with mv
find /path/to/photos -type f -exec mv -nv -t '/path/to/master' -- {} +
# https://stackoverflow.com/questions/19880246/move-only-files-recursively-from-multiple-directories-into-one-directory-with-mv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment