Skip to content

Instantly share code, notes, and snippets.

@guipacheco2
Created October 4, 2019 15:27
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 guipacheco2/3a3be07821a9a42d86c31379d36a85ab to your computer and use it in GitHub Desktop.
Save guipacheco2/3a3be07821a9a42d86c31379d36a85ab to your computer and use it in GitHub Desktop.
Rename dir in md5 file name
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