Re removing hyphens from filenames

Matt Wilson codebrewery at
Thu Jul 12 12:28:58 BST 2007

On 7/12/07, Jamie Nicholson <jamie.nicholson at> wrote:
> >Oh that's *easy*! And there's only /one/ way to do it ...
> You reckon?  I've found it defers from UNIX / shell, it's abit of a pain
> though.  Try single quotes to start off i.e. rm 'file-name'.
> You might then try escaping the hypen though I don't think that work rm
> file\-name, or then if all else fails try a rm -i *.
> That could possibly get it :)  But like a previous poster said why the heck
> would people be asking this here anyway.

I guess you missed the ridiculously long thread about removing files
with hyphens in ... long story short, there are a million+1 ways to
skin a cat.

More information about the mailing list