Does anyone know of a utility or easy command that can clean up crazy characters in filenames? Ideally transliterate them to nearest UTF equivalent, but even just replacing them with underscores is better than nothing.

I know how to mass rename etc, but there are characters I can't decode at all to even use in a command. I seem to remember something used to exist to do this for files to be transferred to FAT drives, or vice versa...

Hmm now that I think about it I guess I could do something like

rename 's/^[a-z|0-9]/_/i' *

(which may also be wrong have not tested it yet). Anyways, would like a better solution that could preserve more of the filename, or alternate approaches.

Thanks,

Jeremy
_______________________________________________
mlug mailing list
[email protected]
https://listes.koumbit.net/cgi-bin/mailman/listinfo/mlug-listserv.mlug.ca

Reply via email to