July 22, 2014 - rob

Remove white space from file name and rename it with bash command

First enter directory with cd:

cd /my/directory

and then run:

for f in *; do mv "$f" `echo $f | tr ' ' '_'`; done

Linux