Weird Files...
Patrick McManus
mcmanus at AppliedTheory.com
Thu Oct 26 09:42:29 EDT 2000
[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");
}
-
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