Created
December 16, 2018 11:42
-
-
Save ArneAnka/2fac16fa6c7204b0990365d1af2f5331 to your computer and use it in GitHub Desktop.
Move/copy files to folder corresponding their fileextension
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
https://askubuntu.com/questions/1102279/search-folder-find-and-copy-files-to-new-folder-corresponding-file-ending