listings / mvmd5
1
2
3
#!/bin/bash

mv -v "$1" "$(md5sum $1 | awk '{print $1}').$(echo $1 | cut --fields=2 --delimiter=.)"