[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Deleting weird-named files



On Wed, 2005-04-06 at 21:55 -0400, Hal Vaughan wrote:
> On Wednesday 06 April 2005 09:46 pm, Mike wrote:
> > Ron Johnson wrote:
> > > On Wed, 2005-04-06 at 12:30 -0400, Hal Vaughan wrote:
> > >>On Wednesday 06 April 2005 12:17 pm, Ed Curtis wrote:
> > >
> > > [snip]
> > >
> > >>2) When all else fails, I go to the directory in Konqueror, and delete
> > >> the file from Konq.  It's never failed.  I don't know if Gnome's file
> > >> manager (or other file managers) will do the same, since I haven't
> > >> tried.
> > >
> > > In this same vein, a tiny python scriptlet:
> > > import os
> > > os.unlink('--exclude=*.jpg')
> > >
> > > Perl certainly can do something similar.
> >
> > Wow.. doesn't this seem a little excessive?
> 
> Ya gotta understand Ron.
> 
> He's a Python evangelist -- he's tried to convert me from Perl several times 
> on another mailing list.

Remember where I said, "Perl certainly can do something similar."?

Point being, though, that there's more to life than bash and coreutils,
so *sometimes* it's easier to use a different tool.

> Hal
> 
> > rm -- '--exclude=*.jpg'
> >
> > works fine, always. I see no reason to use perl, python, c, assembly
> > language, etc to delete a file.


-- 
-----------------------------------------------------------------
Ron Johnson, Jr.
Jefferson, LA USA
PGP Key ID 8834C06B I prefer encrypted mail.

"Since a politician never believes what he says, he is quite
surprised to be taken at his word."
Charles de Gaulle

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: