Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Dec 2000 00:42:09 +0100
From:      Cliff Sarginson <cliff@raggedclown.net>
To:        Mike Meyer <mwm@mired.org>
Cc:        Cliff Sarginson <cliff@raggedclown.net>, Larry Rosenman <ler@lerctr.org>, Daniel.Bye@uk.uu.net, questions@freebsd.org
Subject:   This is the definitive answer on "pesky" files Et Fin
Message-ID:  <20001202004209.C3898@buffy.local>
In-Reply-To: <14888.13560.811822.742841@guru.mired.org>; from mwm@mired.org on Fri, Dec 01, 2000 at 05:32:08PM -0600
References:  <119603073@toto.iv> <14888.4617.148599.530943@guru.mired.org> <20001201225640.A2189@buffy.local> <14888.13560.811822.742841@guru.mired.org>

next in thread | previous in thread | raw e-mail | index | archive | help
   One common question is how to remove files whose names begin with a
`-'.  GNU `rm', like every program that uses the `getopt' function to
parse its arguments, lets you use the `--' option to indicate that all
following arguments are non-options.  To remove a file called `-f' in
the current directory, you could type either:

     rm -- -f

or:

     rm ./-f

   The Unix `rm' program's use of a single `-' for this purpose
predates the development of the getopt standard syntax

(Lifted from "info rm")

Tra la la

Cliff



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?20001202004209.C3898>