useful script, file renamer in python
Rajiv Aaron Manglani
rajiv-FrUbXkNCsVf2fBVCVOL8/A at public.gmane.org
Tue May 29 11:03:27 EDT 2007
> So, Jabra's script didn't really make nice file names as far as I
> could tell, which was the point of my original script, to covert file
> names into something less nasty. Here is an example of the rename
> command, which is a perl program distributed standard on at least all
> Debian/Ubuntu and probably other distros as well...
...
> So rename takes perlexpr's as arguments. And you can combine multiple
> directives with ';', which I didn't known until I asked in #perl.
> Good stuff...
check out http://detox.sourceforge.net/
"Detox is a utility designed to clean up filenames. It replaces difficult
to work with characters, such as spaces, with standard equivalents. It
will also clean up filenames with UTF-8 or Latin-1 (or CP-1252) characters
in them."
you can also create your own translation tables for it to use.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Discuss
mailing list