Re: How to delete files starting with "-"?

2006-09-06 Thread Petr Janda
Cheers everyone. Petr

Re: How to delete files starting with "-"?

2006-09-06 Thread Timour Ezeev
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

Re: How to delete files starting with "-"?

2006-09-06 Thread Geert Hendrickx
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

Re: How to delete files starting with "-"?

2006-09-06 Thread Joerg Sonnenberger
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

Re: How to delete files starting with "-"?

2006-09-06 Thread Matthieu Guéguen
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.

Re: How to delete files starting with "-"?

2006-09-06 Thread Sascha Wildner
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

How to delete files starting with "-"?

2006-09-06 Thread Petr Janda
Is it possible? How? Ive been trying to figure out. Petr