Created
October 4, 2019 15:27
-
-
Save guipacheco2/3a3be07821a9a42d86c31379d36a85ab to your computer and use it in GitHub Desktop.
Rename dir in md5 file name
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
for i in *; do sum=$(echo -n "$i"|md5sum); mv "$i" "${sum%% *}.${i##*.}"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment