[wplug] removing/copying strange filenames
Tom Rhodes
trhodes at FreeBSD.org
Fri Mar 2 12:15:58 EST 2007
On Fri, 2 Mar 2007 11:54:38 -0500
Zach <netrek at gmail.com> wrote:
> Sometimes I encounter filenames such as '???.zip' (where ??? are
> characters in Japanese or something which my system isn't setup for)
> or stranger ones like:
>
> 'file\\/name/\/'
> '---file --- name "
> '(Ebook) Linux Gnu C Compiler'
> ' , file -- name'
> ',,, (file) | =name='
> '[file name]'
> '%%file - name%%'
>
> What is the best way to handle these files in terms of removing or
> copying them to a more sane filename?
Either escape them if they're a character like "?" or use
rm -- -file if it's a hyphen.
--
Tom Rhodes
More information about the wplug
mailing list