Date: Thu, 13 Jun 2002 10:13:45 -0600 (CST) From: Ryan Thompson <ryan@sasknow.com> To: Ada Cheng <acheng@member.ams.org> Cc: questions@FreeBSD.ORG Subject: Re: How to move a file starting with `-` Message-ID: <20020613101212.A9055-100000@ren.sasknow.com> In-Reply-To: <20020613065017.P97286-100000@infinity.kettering.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Ada Cheng wrote to questions@FreeBSD.ORG: > 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. Yep. Use '--' as part of your command line to tell mv(1) that the remaining parameters are filenames, not options: mv -- -name.tex name.tex (Incidentally, this '--' syntax works with a lot of UNIX utilities). Or, perhaps less generally, use mv ./-name.tex name.tex, as another poster just suggested. - Ryan -- Ryan Thompson <ryan@sasknow.com> SaskNow Technologies - http://www.sasknow.com 901 1st Avenue North - Saskatoon, SK - S7K 1Y4 Tel: 306-664-3600 Fax: 306-664-3630 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America 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?20020613101212.A9055-100000>