Skip to content

Instantly share code, notes, and snippets.

@ArneAnka
Created December 16, 2018 11:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Move/copy files to folder corresponding their fileextension
find . -type f -exec bash -c 'mkdir -p sorted/"${0##*.}"; cp "$0" sorted/"${0##*.}"' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment