Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jun 2002 12:14:30 +0100
From:      Daniel Bye <dan@slightlystrange.org>
To:        questions@FreeBSD.ORG
Subject:   Re: How to move a file starting with `-`
Message-ID:  <20020613111430.GB24043@icarus.slightlystrange.org>
In-Reply-To: <20020613065017.P97286-100000@infinity.kettering.edu>
References:  <20020613065017.P97286-100000@infinity.kettering.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 13, 2002 at 06:52:23AM -0400, Ada Cheng wrote:
> Good morning,
> 	How do I move a file called `-name.tex` to name.tex?
> if I try mv -name.tex name.tex I get an illegal option error.
> Thanks
> Ada

mv -- -name.tex new.name 

Dan

-- 
Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC
                                                                     _
                                              ASCII ribbon campaign ( )
                                         - against HTML, vCards and  X
                                - proprietary attachments in e-mail / \

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?20020613111430.GB24043>