on Wed, Aug 22, 2001 at 11:17:32AM +1000, Brian May ([EMAIL PROTECTED]) wrote: > >>>>> "Karsten" == Karsten M Self <kmself@ix.netcom.com> writes: > > Karsten> $ find . -type f -name '--remove-files' -exec rm -f > Karsten> {} \; > > If it weren't for the fact that "find" prefixes the name of the file > with "./", then this wouldn't work.
Note that I was posting an alternative, the 'rm -- --remove-files' solution is the one I'd generally recommend. I'm trying to remember a trick (probably in O'Reilly's _UNIX Power Tools_) for removing files by inode. Trying to remember what it was or in what context it worked. I think it was for files with odd characters which would be interpreted as argument seperators, not for files beginning with a dash or double-dash. -- 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
pgpOua0TzcDW3.pgp
Description: PGP signature