Skip to content

Instantly share code, notes, and snippets.

@brodzik
Created May 13, 2020 23:45
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 brodzik/f9a6bc23d92e518a844437412b0a6ce3 to your computer and use it in GitHub Desktop.
Save brodzik/f9a6bc23d92e518a844437412b0a6ce3 to your computer and use it in GitHub Desktop.
Move files from sub-directories to current directory.
find . -mindepth 2 -type f -exec mv --backup=numbered {} . \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment