Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Dec 1999 18:44:59 +0100
From:      Udo Schweigert <ust@cert.siemens.de>
To:        Alejandro Galindo Chairez AGALINDO <agalindo@servidor.exsocom.com.mx>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: File names statring with  '-'
Message-ID:  <19991215184459.A59325@alaska.cert.siemens.de>
In-Reply-To: <Pine.BSF.3.96.991215113325.6474A-100000@servidor.exsocom.com.mx>; from agalindo@servidor.exsocom.com.mx on Wed, Dec 15, 1999 at 11:35:58AM -0600
References:  <Pine.BSF.3.96.991215113325.6474A-100000@servidor.exsocom.com.mx>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 15, 1999 at 11:35:58 -0600, Alejandro Galindo Chairez AGALINDO wrote:
> Hello,
> 
> For a mistake a customer saved a file name (on our FreeBSD server) with a
> '-', how can we rename it? i was trying to move the file on the next way:
> 
> mv -filename.txt  filename.txt
> 
> mv "-filename.txt" filename.txt
> 
> but it didnt work ( becouse the mv command take the '-' especting an
> option)
> 

mv -- -filename.txt filename.txt

Regards
-------------------------------------------------------------------------------
Udo Schweigert              || Voice      : +49 89 636 42170
Siemens AG, Siemens CERT    || Fax        : +49 89 636 41166
ZT IK 3                     || email      : Udo.Schweigert@mchp.siemens.de
D-81730 Muenchen / Germany  ||            : ust@cert.siemens.de
PGP fingerprint             || 2A 53 F6 A6 30 59 64 02  6B C4 E0 73 B2 C9 6C E7
-------------------------------------------------------------------------------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991215184459.A59325>