Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
BashPOSIX(Tested on zsh) + basic Linux commands 151
export IFS=' ' for f in $(ls -R1);do export n=$(echo $f|tr ' ' '_');yes n|mv $f $n || yes n|mv $f `echo $n;echo $f|md5sum` done
Bash + basic Linux commands 151
POSIX(Tested on zsh) + basic Linux commands 151
Bash + basic Linux commands 154151
export IFS=' ' for f in $(ls -cRR1) do;do export n=$(echo $f|tr ' ' '_') yes n |;yes mvn|mv $f $n || yes n |n|mv $f $(echo $n`echo echo$n;echo $f|md5sum)$f|md5sum` done
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
Bash + basic Linux commands 199154
export IFS=' ' for filef in $(ls -cR) do export newfile=$n=$(echo $file|tr$f|tr ' ' '_') mvyes --reply=non $file| $newfilemv $f $n || mvyes --reply=non $file| $f $(echo $newfile$n echo $file|md5sum$f|md5sum) done
Bash + basic Linux commands 199
export IFS=' ' for file in $(ls -cR) do export newfile=$(echo $file|tr ' ' '_') mv --reply=no $file $newfile || mv --reply=no $file $(echo $newfile echo $file|md5sum) done