From owner-freebsd-questions@FreeBSD.ORG Fri Aug 20 16:44:34 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 4C45E1065695 for ; Fri, 20 Aug 2010 16:44:34 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2213C8FC08 for ; Fri, 20 Aug 2010 16:44:33 +0000 (UTC) Received: by iwn36 with SMTP id 36so3589609iwn.13 for ; Fri, 20 Aug 2010 09:44:33 -0700 (PDT) Received: by 10.231.191.74 with SMTP id dl10mr1704026ibb.157.1282322672838; Fri, 20 Aug 2010 09:44:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.150.135 with HTTP; Fri, 20 Aug 2010 09:44:12 -0700 (PDT) In-Reply-To: <4C6EA6B6.6090307@comcast.net> References: <4C6EA6B6.6090307@comcast.net> From: Eitan Adler Date: Fri, 20 Aug 2010 12:44:12 -0400 Message-ID: To: Rem P Roberti Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD 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:44:34 -0000 On Fri, Aug 20, 2010 at 12:00 PM, Rem P Roberti wrot= e: > =C2=A0This is a new one for me. =C2=A0I converted a YouTube selection usi= ng youtube_dl > and the file that was created was named -elDeJaPWGg.flv. =C2=A0When I try= to > rename it, or delete it, I get an error message thus: > > root@ ~: rm -elDeJaPWGg.flv > rm: illegal option -- e > usage: rm [-f | -i] [-dIPRrvW] file ... > =C2=A0 =C2=A0 =C2=A0 unlink file > > No switch with either the rm or mv command works. =C2=A0What is actually = going on > here? > You may find this article interesting: How to properly deal with filenames in shell scripts: http://www.dwheeler.com/essays/filenames-in-shell.html Some more detail (and a possible "fix"): http://www.dwheeler.com/essays/fixing-unix-linux-filenames.htm --=20 Eitan Adler