Hi Jeremy,

When I had the problem you were mentioning, I just put the source name between 
quotations and then did the rename.

Example mv  "Th!s is a bad name ".whatever   ThisIsaGoodName.whatever.

        

 
------------------


Regards

 Leslie

Mr. Leslie Satenstein
50 years in IT and going strong.
Yesterday was a good day, today is a better day,
and tomorrow will be even better.
 
mailto:[email protected]
alternative: [email protected] 
www.itbms.biz  




>________________________________
> From: Jeremy <[email protected]>
>To: [email protected] 
>Sent: Friday, April 20, 2012 3:28 PM
>Subject: [MLUG] correct weird characters in filenames
> 
>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
>
>
>
_______________________________________________
mlug mailing list
[email protected]
https://listes.koumbit.net/cgi-bin/mailman/listinfo/mlug-listserv.mlug.ca

Reply via email to