I've done batch renaming within a folder before, but this is a lot more
complex than that.
I'm trying to get 3.3GB of files (the entire HDD) off an old Wall Street
G3 PowerBook, with no CD-ROM (so booting a live distro is not an
option). I set up netatalk on my Debian box and copied all the files
over. Now I need to samba them to my desktop (Windows) so I can burn
them to a DVD.
Now the fun begins. Netatalk converts some "." and "/" within filenames
to their escape chars ":2e", ":2f", but leaves a lot of chars that
Windows chokes on. I'm not partial to the files names being kept as they
are, so a simple, s/[^A-Za-z0-9 .]/_/g to replace all questionable chars
with "_" would work for me. The problem is, when I use find to recurse
through the directories, I don't want to replace the "/"s between each
directory in the file's path, but if I add "/" to the regex, I get an
error. ("\/" didn't work either.)
Any ideas?
-jb
--------------------
BYU Unix Users Group
http://uug.byu.edu/
The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG.
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list