Date: Tue, 24 Nov 1998 00:12:25 -0800 From: "Leonard C." <leonardc9@usa.net> To: questions@FreeBSD.ORG Subject: How to delete files starting with "-"? Message-ID: <v04011709b2801982e8b9@[10.0.0.2]>
next in thread | raw e-mail | index | archive | help
I accidentally created a file starting with a dash, and can't seem to delete it. mv, cp, and rm all interpret the dash as an argument. If "-foo" is the name of the file, I've tried "-foo", '-foo', and \-foo, but none of them work since these just affect the shell rather than the actual parsing of the command itself. Any ideas? This is driving me *absolutely* crazy! Thanks, Leonard -- Support the Blue Ribbon Campaign for free speech online () http://www.eff.org/blueribbon.html /\ "Those who will not reason perish in the act. Those who will not act, perish for that reason." - W. H. Auden To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v04011709b2801982e8b9>