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

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



on Mon, Aug 20, 2001 at 02:26:37PM -0700, allen wayne best just ramblin in his amx (debian@rl76065.cup.hp.com) 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.

Yet another solution:

    $ find . -type f -name '--remove-files' -exec rm -f {} \;

Cheers.

-- 
Karsten M. Self <kmself@ix.netcom.com>          http://kmself.home.netcom.com/
 What part of "Gestalt" don't you understand?             There is no K5 cabal
  http://gestalt-system.sourceforge.net/               http://www.kuro5hin.org
   Free Dmitry! Boycott Adobe! Repeal the DMCA!    http://www.freesklyarov.org
Geek for Hire                        http://kmself.home.netcom.com/resume.html

Attachment: pgp8YMRXZ7_S2.pgp
Description: PGP signature


Reply to: