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

Re: how do i extract a bullet from my foot (tar woes)



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 debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact 
> listmaster@lists.debian.org
> 



Reply to: