Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
replace filenames with file's md5 sum
ls -1 -A | while IFS= read FILE; do
EXTNAME=`echo $FILE | rev | cut -f 1 -d '.' | rev`;
NEWNAME=`md5sum "$FILE" | awk '{ print $1 }'`\.$EXTNAME;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.