[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Naming files after command arguments...
From: |
Alexandre Dulaunoy |
Subject: |
Re: Naming files after command arguments... |
Date: |
Wed, 8 Oct 2003 16:15:49 +0200 (CEST) |
On Wed, 8 Oct 2003, Security Analyst wrote:
> simply name files after common command arguments... below i made an
> executable and named it "--help" wich just happens to be one of the
> "rm" arguments. so- whenever i try to delete this file from the
> command line, i just get the "rm" help menu
> To remove a file whose name starts with a `-', for example `-foo',
> use one of these commands:
> rm -- -foo
>
> rm ./-foo
You are posting the answer :-)
rm -- --help
This must be a kind of a joke.
--
-- Alexandre Dulaunoy (adulau) -- http://www.foo.be/
-- http://pgp.ael.be:11371/pks/lookup?op=get&search=0x44E6CBCD
-- "Knowledge can create problems, it is not through ignorance
-- that we can solve them" Isaac Asimov