Try rm -- --remove-files The "--" makes it take all following args as args and not options. This is a standard thing for most of the GNU or Unix tools.
rm ./--remove-files would work too. Got those from "man rm" :). On Wed, Aug 22, 2001 at 07:28:26AM +1000, Darren Marsh wrote: > allen wayne best just ramblin in his amx wrote: > > >hello: > > > >i have managed to insert a bullet in my poda courtesy of tar and my > >ineptness! that is, i did: > > > > tar -cvIf --remove-files /tmp/foo.tz /opt/tmp > > > >silly me filled up my current directory with a file called > >"--remove-files". my question is: how the heck to i get rid of this > >beast???? > > > >i've tried > > rm -f "--remove-files" > > rm -f '--remove-files' > > rm -f "\\-\\-remove\\-files" > > rm -f "\-\-remove\-files" > > rm -f '\\-\\-remove\\-files' > > rm -f '\-\-remove\-files' > > > >all with the same lack of success! > > > >any assist in this would be most appreciated. > > > Here's another: > > rm -i *files > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] >