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
Try `mv --help' for more information.
Is there a way to do this without resorting to graphical file managers?
I tried prepending a \ the the filename but it didn't help.

Use '--' before any filenames, this marks 'end of options'. |[EMAIL PROTECTED]:~/tempdir$ ls |-hello- |[EMAIL PROTECTED]:~/tempdir$ mv -- -hello- hello |[EMAIL PROTECTED]:~/tempdir$ ls |hello

HTH,
Flo

Attachment: pgp00000.pgp
Description: PGP signature



Reply via email to