I am trying to rename all the files in a folder per their CRC32 value.
I am basing work from this post: Rename files to md5 sum + extension (BASH)
md5sum * | sed -e 's/\([^ ]*\) \(.*\(\..*\)\)$/mv -v \2 \1\3/e'
I have minimal understanding of sed, and tried teaching myself enough regex to reverse engineer what is going on but can't seem to understand. I am using bash and the crc32 function to achieve this.
I would appreciate help on this and would appreciate it even more if somebody had the time to break this down and help me understand.