Skip to content

Instantly share code, notes, and snippets.

@hpcslag
Created February 23, 2019 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hpcslag/af2c0b4ead349be15f79ceaa8fcc9f46 to your computer and use it in GitHub Desktop.
Save hpcslag/af2c0b4ead349be15f79ceaa8fcc9f46 to your computer and use it in GitHub Desktop.
Move all subfolder files to parent folder
//go to target folder and run this.
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