[ILUG] Deleting a file with a "--" prefix
Charles Sharp
charles.sharp at ireland.sun.com
Wed May 23 10:58:54 IST 2001
If you'd like to know exactly what you're getting,
pipe it through "od -cx" before the more.
You'll need to be patient, as on first glance the
output looks confused, but look at it a while and
you'll figure it out.
This might be helpful in determining who/what is
causing this.
cas
Roy White wrote:
>
> Seeing as how we are on this subject here's one for ya,
>
> how do I delete the following files...
> =========================================================
> #ls -las | more
> total 869
> 0 -rw-r--r-- 1 root other 0 Apr 12 08:19 unexpected
>
> ^
>
> % Invalid input detected at
> 0 -rw-r--r-- 1 root other 0 Apr 12 08:14 unexpected
>
> ^
>
> % Invalid input detected at
> 0 -rw-r--r-- 1 root other 0 Apr 12 08:15 unexpected
>
> ^
>
> % Invalid input detected at
> 0 -rw-r--r-- 1 root other 0 Apr 12 08:16 unexpected
>
> ^
>
> % Invalid input detected at
> ==========================================================
>
> ? any help much appreciated, and how would you go about creating them
>
> Regards
>
> Roy
>
> p.s. this is on Solaris 5.6
>
> -----Original Message-----
> From: Colm Buckley [mailto:colm at tuatha.org]
> Sent: 23 May 2001 09:35
> To: Breathnach, Proinnsias (Dublin); Irish Linux Users' Group
> Subject: Re: [ILUG] Deleting a file with a "--" prefix
>
> On Wednesday 23 May 2001 09:30, you wrote:
> > Quote it ?
>
> Proinnsias, I'm ashamed of you.
>
> Quote parsing is performed by the *shell*, and option parsing is
> performed by the *command*. Quoting the name won't make any
> difference to what 'rm' sees.
>
> > rm "--preserve-permissions"
> > should do it
>
> It would be a good idea if people actually *tried* their solutions
> before passing them on as advice...
>
> Colm
>
> --
> Colm Buckley @ NewWorld Commerce
> Business: +353 1 4334334 / colm at nwcgroup.com / http://www.nwcgroup.com/
> Personal: +353 87 2469146 / colm at tuatha.org / http://www.tuatha.org/~colm/
> You sound reasonable... Time to up my medication.
>
> --
> Irish Linux Users' Group: ilug at linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie
>
> --
> Irish Linux Users' Group: ilug at linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie
More information about the ILUG
mailing list