From owner-freebsd-questions@FreeBSD.ORG Fri Apr 9 07:40:30 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 387DD16A4CE for ; Fri, 9 Apr 2004 07:40:30 -0700 (PDT) Received: from psknet.com (kennedy.psknet.com [63.171.251.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE73043D39 for ; Fri, 9 Apr 2004 07:40:29 -0700 (PDT) (envelope-from troy@psknet.com) Received: from pool-151-199-117-38.roa.east.verizon.net ([151.199.117.38] helo=tws) by psknet.com with asmtp (TLSv1:RC4-MD5:128) (Exim 4.20) id 1BBxBE-0004oN-EH for freebsd-questions@freebsd.org; Fri, 09 Apr 2004 10:40:28 -0400 From: "Troy Settle" To: Date: Fri, 9 Apr 2004 10:40:22 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcQeOxIslq2o8oBHRgWUM5Kg7xcI8gABOVag In-Reply-To: <4076ACF3.5030203@newssun.med.miami.edu> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-Id: Subject: RE: How can I remove this file ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2004 14:40:30 -0000 > -----Original Message----- > From: David Piniella > Sent: Friday, April 09, 2004 10:02 AM > > > I've never run across that. > > % cd tmp > % ls > % touch - > % ls > - > % rm - > % ls > % > > although if it was giving you trouble, I suppose you could do a > rm ./\- > > -- > David Piniella > University of Miami > David, I think you missed the part where the hypen was the first character of the filename, not the only character. $ touch -file touch: illegal option -- i usage: touch [-acfm] [-r file] [-t [[CC]YY]MMDDhhmm[.SS]] file ... $ touch -- -file $ rm -file rm: illegal option -- l usage: rm [-f | -i] [-dPRrvW] file ... unlink file $ rm -- -file -- Troy Settle Pulaski Networks http://www.psknet.com 866.477.5638