From owner-freebsd-questions@FreeBSD.ORG Sun Aug 26 12:25:31 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F62A16A421 for ; Sun, 26 Aug 2007 12:25:31 +0000 (UTC) (envelope-from b.movaqar@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by mx1.freebsd.org (Postfix) with ESMTP id 774E313C442 for ; Sun, 26 Aug 2007 12:25:31 +0000 (UTC) (envelope-from b.movaqar@gmail.com) Received: by wa-out-1112.google.com with SMTP id m33so1579345wag for ; Sun, 26 Aug 2007 05:25:31 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rZmCnr4vVRO2ZlhAyzK0tSnXt+HOmX+BO2XisAo4rZWJsrzwMCl6V/c5KVOioVO+xkUE19n3GQosgqXHzB1fjxUOs5A0mlkSHWAUfcoebc7Wkn3l/z7q2YBhD/l3toYoC8745jKnRCpgphdWTMmMBUSDYKlzUgysSU89WqyhmrI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bj1hMr0PJeh27rCPqnxb9exos4ZjQkbF+JWhfUCyS7mB6l8F0p/ALKZ6oP4MnqO7mJyM+U6xZfDVy4Rm1OqreOlL+69NYu3GHVQU2cQHCddiCUSSS+Q+B6fyAbhDhz3BOtUN7fGgmwnfj1guao/NfJxUdah7JUmwI2G4teWNsaM= Received: by 10.114.76.1 with SMTP id y1mr4132785waa.1188131130846; Sun, 26 Aug 2007 05:25:30 -0700 (PDT) Received: by 10.114.132.13 with HTTP; Sun, 26 Aug 2007 05:25:30 -0700 (PDT) Message-ID: <6d62f69a0708260525u25de6d7dvedaf1648b9f89658@mail.gmail.com> Date: Sun, 26 Aug 2007 15:55:30 +0330 From: "Bahman M." To: "Matthew Seaman" In-Reply-To: <46D17013.5080005@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <001601c7e7d9$9e485b10$6501a8c0@GRANT> <6d62f69a0708260514v2a5ccbf8n6b6fb4fd61436175@mail.gmail.com> <46D17013.5080005@infracaninophile.co.uk> Cc: Grant Peel , freebsd-questions@freebsd.org Subject: Re: Pesky File X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Aug 2007 12:25:31 -0000 You're right. 'rm ./P' is much better or using '--' as the end of arguments. I didn't know that. Bahman On 8/26/07, Matthew Seaman wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Bahman M. wrote: > > What immediately came to my mind: > > % rm `find . -type f -name '-P'` > > This is just an excessively prolix way of running a command that > outputs ./-P and then feeding the result into rm(1). You can just type: > > rm ./-P > > for heaven's sake... > > Cheers, > > Matthew > > - -- > Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard > Flat 3 > PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate > Kent, CT11 9PW > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.4 (FreeBSD) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFG0XAT8Mjk52CukIwRCCgmAJ4yonsuo6FvAYT+1ZWLMDiuAH9dugCffMIe > xPLN/jHG0Qha2ZbsMrmqfNw= > =Pmxs > -----END PGP SIGNATURE----- >