Date: Mon, 19 Jul 1999 19:03:06 -0500 From: Jon Hamilton <hamilton@pobox.com> To: Doug <doemill@shocking.com> Cc: Chris <chrismar@shasta.eclipse.net>, freebsd-questions@FreeBSD.ORG Subject: Re: whoops, can't remove file :\ Message-ID: <19990720000306.3A360148@woodstock.monkey.net> In-Reply-To: Your message of "Mon, 19 Jul 1999 16:42:15 PDT." <Pine.BSI.4.05.9907191641250.24882-100000@fingers.shocking.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.BSI.4.05.9907191641250.24882-100000@fingers.shocking.com>, Dou g wrote: [ chris created a file with a dash as its first character ] } Try this } rm -i *h No, don't. Well, you can try it, but it won't work. Someone else posted an answer saying to use -- to end the options, like $ rm -- -h to remove a file called ``-h''. That'll work, as will the slightly more generic (i.e. not specific to commands that use getopt to parse their command line arguments): $ rm ./-h This is covered in the comp.unix.questions FAQ. -- Jon Hamilton hamilton@pobox.com 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?19990720000306.3A360148>