Stripping out illegal characters from filenames
Does anybody have a script *that actually works* that I can run on my OSX machine to traverse a hierarchy of folders, find all the files with naughty characters in the filenames that Linux doesn't like and renames the files to remove said naughty characters? I'm trying to copy roughly 40,000 files to my new linux based server via samba and it keeps barfing on bad filenames.
I've already searched for scripts online and none of the ones I've downloaded actually worked.
Alternatively, does anybody know how to set a linux samba server to automatically remove illegal characters when someone tries to copy them onto the server from a remote client? This would be a better solution if possible.