From owner-freebsd-questions@FreeBSD.ORG Fri Aug 20 16:52:10 2010 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 C77C41065672 for ; Fri, 20 Aug 2010 16:52:10 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: from cpoproxy2-pub.bluehost.com (cpoproxy2-pub.bluehost.com [67.222.39.38]) by mx1.freebsd.org (Postfix) with SMTP id 9023B8FC08 for ; Fri, 20 Aug 2010 16:52:10 +0000 (UTC) Received: (qmail 9438 invoked by uid 0); 20 Aug 2010 16:52:09 -0000 Received: from unknown (HELO box543.bluehost.com) (74.220.219.143) by cpoproxy2.bluehost.com with SMTP; 20 Aug 2010 16:52:09 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=apotheon.com; h=Date:From:To:Subject:Message-ID:Mail-Followup-To:References:Mime-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent:X-Identified-User; b=WbCEGZwiIyODFG3nFvMUUSC9ov4NzqKP8iv9yH9uFHRYAejHlX78r0YL8NE5KmHDkzwvhN6uH2w/smAWBE9ueV2agmPepaWYTEC2q08C/NSIOVYkMcg9XJMwnbBpWzNi; Received: from c-24-8-180-234.hsd1.co.comcast.net ([24.8.180.234] helo=kukaburra.hydra) by box543.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1OmUp6-0002o4-Qt for freebsd-questions@freebsd.org; Fri, 20 Aug 2010 10:52:09 -0600 Received: by kukaburra.hydra (sSMTP sendmail emulation); Fri, 20 Aug 2010 10:49:39 -0600 Date: Fri, 20 Aug 2010 10:49:39 -0600 From: Chad Perrin To: FreeBSD Message-ID: <20100820164939.GB50581@guilt.hydra> Mail-Followup-To: FreeBSD References: <4C6EA6B6.6090307@comcast.net> <4C6EA802.9010105@gmail.com> <4C6EAD63.5040609@comcast.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uQr8t48UFsdbeI+V" Content-Disposition: inline In-Reply-To: <4C6EAD63.5040609@comcast.net> User-Agent: Mutt/1.4.2.3i X-Identified-User: {2737:box543.bluehost.com:apotheon:apotheon.org} {sentby:smtp auth 24.8.180.234 authed with ren@apotheon.org} Subject: Re: Can't remove or move 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: Fri, 20 Aug 2010 16:52:10 -0000 --uQr8t48UFsdbeI+V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 20, 2010 at 09:29:23AM -0700, Rem P Roberti wrote: > On 08/20/10 09:06, Mark Tinguely wrote: > > > >For many commands, the "--" stops the argument processing: > > > > rm -- -elDeJaPWGg.flv >=20 > Thank you. Still deep into the FreeBSD learning curve, but loving it. = =20 > I should have recognized that the "-" would indicated a switch, but even= =20 > if I had, I would not have known the fix. Thanks again. There are a couple more ways to get around this. One requires planning ahead, the other requires less typing (if you hand-typed the filename). If you want to plan ahead, you can use the -o option with youtube-dl: youtube-dl -o output_filename.flv 'url_for_youtube_video' This sets the name of the file that will appear on your computer to "output_filename.flv", so you control what the file is called. If it's too late to plan ahead, as in the case of -elDeJaPWGg.flv, you can just use a filename glob: rm *PWGg.flv Whether this works depends on your shell, though. In tcsh, for instance, it won't work, and you'll have to use the -- option as suggested by Mark Tinguely. --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] --uQr8t48UFsdbeI+V Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkxusiMACgkQ9mn/Pj01uKWtfgCgmMtjDwadDLd0QwPbILHT3WXK 1SIAoJ5MWkzrMmQ1cBc1qkpCWTlhT0KM =NerG -----END PGP SIGNATURE----- --uQr8t48UFsdbeI+V--