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

throttle traffic on apache

Pause a program which is using too much CPU

/var/log/journal taking up lots of space