
Re: "space" in mac filename
Hi,
NTFS supports blank spaces in filenames, so why would you want to do that?
Regards,
- Erik
P.S. If you really want to do this, you could try:
Code:
find . -exec sh -c 'CONV="`echo "$0" | sed "s/ /_/g"`"; if [ "$0" != "${CONV}" ]; then mv -v -n "$0" "${CONV}"; fi' '{}' \;
This will go through all the contents recursively starting in the current directory and rename each file or directory with spaces to a pathname with spaces converted to underscores.
However it is not perfect as when directories are renamed, 'find' gets confused... so you have to run the command repeatedly until it doesn't find anything more to rename.