Skip to main content
Corrected description.
Source Link

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

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

POSIX(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
Updated ls, shrunk.
Source Link

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 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
Shrunk code and used newer mv.
Source Link

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

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
Shrunk to below 200.
Source Link
Loading
Count correction
Source Link
Loading
Improved formatting
Source Link
ProgramFOX
  • 8.3k
  • 7
  • 45
  • 70
Loading
Source Link
Loading