Skip to content

Instantly share code, notes, and snippets.

@mpuz
Created September 30, 2021 17:08
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 mpuz/6c24a143790550e3a586fb2632c4ef01 to your computer and use it in GitHub Desktop.
Save mpuz/6c24a143790550e3a586fb2632c4ef01 to your computer and use it in GitHub Desktop.
moves files from subfolders up
find . -mindepth 2 -type f -print -exec mv --backup=numbered {} . \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment