replace spaces in filenames in bulk

 Dealing with spaces on the commandline in linux is a pain. This commandline will strip spaces and replace with underscores:


for f in *\ *; do mv "$f" "${f// /_}"; done 2>/dev/null


Popular posts from this blog

Pause a program which is using too much CPU

throttle traffic on apache

/var/log/journal taking up lots of space