How to replace spaces in file names using a bash script manager Fri, 01/20/2017 - 20:02 This will recursivly replace spaces with '_' in directories and filenames find . -depth -name '* *' \ | while IFS= read -r f ; do mv -i "$f" "$(dirname "$f")/$(basename "$f"|tr ' ' _)" ; done Book traversal links for How to replace spaces in file names using a bash script How to install BpyTop which is like htop or top. Up Linux Administrators Essentials