Weird Files...
Jerry Feldman
gaf at blu.org
Thu Oct 26 09:59:27 EDT 2000
And don't forget emacs (or xemacs) dired.
On 26 Oct 2000, at 9:42, Patrick McManus wrote:
> [Derek Atkins: Thu, Oct 26, 2000 at 09:11:37AM -0400]
> > Right.. So you need to convince rm that it's a file, not an argument.
> > One way of doing this is:
> >
> > rm ./-f2
> >
>
> yep.. from the "more than one way to skin a cat" school, everybody's
> got their favorites..
>
> rm -- -f2
>
> rm ?f2
>
> rm -i * (interactive, so not for scripting.. but useful when you've
> got a directory full of stuff due to a shell script gone
> awry)
>
>
> int main (int c, char **v)
> {
> unlink ("-f2");
> }
Jerry Feldman <gaf at blu.org>
Associate Director
Boston Linux and Unix user group
http://www.blu.org
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).
More information about the Discuss
mailing list