Disclaimer

Details

Most p2p files (mp3, mpeg, docs) have spaces in their file names which Linux
doesn't like very much. Let this script replace all spaces with underscores
for you. This script can also commit changes to sub-directories.

Example: space -r /home/richard/mp3 replaces all spaces with underscores in
all file and directory names in /home/richard/mp3, including all
sub-directories.

Fixed: spacereplace now handles special characters in file names without
problems.

spacereplace without options now returns help. This is to avoid
unintentional space replaces.

Comments

Comments: June 21, 2007 - Friedel Loinger

I downloaded spacereplace-1.0.1.tar.gz (publisher: Richard van Kampen) and installed it in our Linux system. This script should be able to replace all spaces in a file or directory name, but if fails if directories or filenames start with a dot (.). The bug is in the section
'function getdirs':