From owner-freebsd-questions Wed Dec 15 10:31:56 1999 Delivered-To: freebsd-questions@freebsd.org Received: from monsoon.mail.pipex.net (monsoon.mail.pipex.net [158.43.128.69]) by hub.freebsd.org (Postfix) with SMTP id 6E33D1558C for ; Wed, 15 Dec 1999 10:31:51 -0800 (PST) (envelope-from mark@dogma.freebsd-uk.eu.org) Received: (qmail 26430 invoked from network); 15 Dec 1999 18:31:38 -0000 Received: from userbi56.uk.uudial.com (HELO marder-1.) (62.188.143.120) by smtp.dial.pipex.com with SMTP; 15 Dec 1999 18:31:38 -0000 Received: (from mark@localhost) by marder-1. (8.9.3/8.8.8) id SAA01013; Wed, 15 Dec 1999 18:15:49 GMT (envelope-from mark) Date: Wed, 15 Dec 1999 18:15:44 +0000 From: Mark Ovens To: Alejandro Galindo Chairez AGALINDO Cc: freebsd-questions@freebsd.org Subject: Re: File names statring with '-' Message-ID: <19991215181543.B325@marder-1> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Dec 15, 1999 at 11:35:58AM -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 HTH > Thanks for your help in advanced > > Alejandro > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- PERL has been described as "the duct tape of the Internet" and "the Unix Swiss Army chainsaw" - Computer Shopper 12/99 ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message