Re: renaming file names beginning with -

2003-12-01 Thread Alan Shutko
Nick Welch <[EMAIL PROTECTED]> writes: > The -- means something along the lines of "don't try to interpret > anything after this as an -option or --option". A much better method is to put "./" in front of the filename, like rm ./-help ./ will work with all programs. Only some programs interpre

Re: renaming file names beginning with -

2003-11-29 Thread Nick Welch
On Sun, Nov 30, 2003 at 12:41:44AM +0200, Micha Feigin wrote: > I occationaly get files with a name beginning with - (minus) on my system. When > trying to rename them I get an error that the option does not exist. > For example with mv -hello- hello I get an error > mv: invalid option -- h > Try `

Re: renaming file names beginning with -

2003-11-29 Thread Florian Ernst
Hello Micha! On Sun, Nov 30, 2003 at 12:41:44AM +0200, Micha Feigin wrote: I occationaly get files with a name beginning with - (minus) on my system. When trying to rename them I get an error that the option does not exist. For example with mv -hello- hello I get an error mv: invalid option -- h T

renaming file names beginning with -

2003-11-29 Thread Micha Feigin
I occationaly get files with a name beginning with - (minus) on my system. When trying to rename them I get an error that the option does not exist. For example with mv -hello- hello I get an error mv: invalid option -- h Try `mv --help' for more information. Is there a way to do this without resor