Cheers everyone.
Petr
On Thu, 7 Sep 2006, Petr Janda wrote:
Is it possible? How? Ive been trying to figure out.
Yet another way is to specified either full or relative path of the file, i.e:
rm /home/user/-badfile
or
rm ./-badfile
BR,
- Timour
On Thu, Sep 07, 2006 at 12:07:52AM +1000, Petr Janda wrote:
> Is it possible? How? Ive been trying to figure out.
rm -- -foo
(that's why I did "touch -- -i" in my homedir, so I can't accidentally do
"rm *" there ;-))
Geert
On Thu, Sep 07, 2006 at 12:07:52AM +1000, Petr Janda wrote:
> Is it possible? How? Ive been trying to figure out.
rm -- -foo
Any tool using getopt(3) supports '--' to annotate the end of arguments.
Joerg
On 9/6/06, Petr Janda <[EMAIL PROTECTED]> wrote:
Is it possible? How? Ive been trying to figure out.
Petr
Just do "rm -- yourfilestartingwithminus"
Note the double minus sign between rm and the filename.
Petr Janda wrote:
Is it possible? How? Ive been trying to figure out.
rm -- filename
'--' means: End of options, treat everything from this point as arguments.
Sascha
--
http://yoyodyne.ath.cx
Is it possible? How? Ive been trying to figure out.
Petr