Skip to main content
5 of 7
Shrunk code and used newer mv.

Bash + basic Linux commands 154

export IFS='
'
for f in $(ls -cR)
do export n=$(echo $f|tr ' ' '_')
yes n | mv $f $n || yes n | $f $(echo $n echo $f|md5sum)
done