Forward slashes in filenames. Convert from 2f to Colon
I'm pulling files from a CD on a Mac over to Linux through Netatalk. When I do, the / in the filename is converted to a 2f (2f is hex for / ) . Is there anything that Samba or Netatalk can do to convert the 2f to a hyphen on the fly? I saw an option called "mangled map" for Samba, but I couldn't figure it out. Is there some kind of program that will look at a filename, see the 2f and convert it to a hypen? Any solution would be good.
|
Search filenames for specific characters
How can I search a filename 2f and replace it with 2d? These hex values will replace a / with a - . Is there a program available to search filenames?
|
//Moderator Note: I merged these threads to keep the discussion in one thread, since these are similiar enough. Regards.
|
You mean replace occurrences of the character sequences 2f in a filename for files that exist on your hard drive? I don't know samba or netaralk way but
If so, if filename=the name of a file with lots of 2f in it You could incorprate mv $filename ${filename//2f/-} # replace the - with whatever you want into a simple script, anyway that's one way if I've understood right. |
All times are GMT -5. The time now is 08:07 AM. |