Skip to content

Instantly share code, notes, and snippets.

@dobsondev
Created September 8, 2015 21:44
Show Gist options
  • Save dobsondev/7e95bd0f333c5e24ea81 to your computer and use it in GitHub Desktop.
Save dobsondev/7e95bd0f333c5e24ea81 to your computer and use it in GitHub Desktop.
Find all files in this directory and its sub-directories and execute mv with target directory. For each file found to move them to current directory.
find . -mindepth 2 -type f -print -exec mv {} . \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment