Re: renaming file names beginning with -
From: Nick Welch (mack_at_incise.org)
Date: 11/30/03
- Previous message: Scott Ehrlich: "Re: Help w/Spamassassin via apt-get"
- In reply to: Micha Feigin: "renaming file names beginning with -"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 29 Nov 2003 17:21:30 -0600 To: debian-user <debian-user@lists.debian.org>
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.
Try:
mv -- -hello- hello
ls -l -- -hello-
etc.
The -- means something along the lines of "don't try to interpret
anything after this as an -option or --option".
-- Nick Welch aka mackstann | mack @ incise.org | http://incise.org Better dead than mellow. -- To UNSUBSCRIBE, email to debian-user-request@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: Scott Ehrlich: "Re: Help w/Spamassassin via apt-get"
- In reply to: Micha Feigin: "renaming file names beginning with -"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]