From owner-freebsd-questions Wed Feb 12 13: 1:24 2003 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 17F7F37B401 for ; Wed, 12 Feb 2003 13:01:22 -0800 (PST) Received: from apollo.laserfence.net (apollo.laserfence.net [196.44.69.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54CA843FAF for ; Wed, 12 Feb 2003 13:01:20 -0800 (PST) (envelope-from will@unfoldings.net) Received: from localhost ([127.0.0.1]) by apollo.laserfence.net with esmtp (Exim 4.10) id 18j40K-000Ope-00; Wed, 12 Feb 2003 23:01:17 +0200 Received: from prometheus-p0.datel.laserfence.net ([192.168.255.1] helo=prometheus.home.laserfence.net) by apollo.laserfence.net with esmtp (Exim 4.10) id 18j405-000OpI-00; Wed, 12 Feb 2003 23:01:02 +0200 Received: from phoenix.home.laserfence.net ([192.168.0.2]) by prometheus.home.laserfence.net with esmtp (Exim 4.10) id 18j401-0007tr-00; Wed, 12 Feb 2003 23:00:57 +0200 Received: from will by phoenix.home.laserfence.net with local (Exim 4.10) id 18j3zz-0006O2-00; Wed, 12 Feb 2003 23:00:55 +0200 From: Willie Viljoen To: Andres Aitsen Subject: Re: how to delete a file called ???? Date: Wed, 12 Feb 2003 23:00:55 +0200 User-Agent: KMail/1.5 References: <20030212111232.A6759@skytrackercanada.com> <200302121145.33271.kstewart@owt.com> <200302122254.47194.Andres.Aitsen@mail.ee> In-Reply-To: <200302122254.47194.Andres.Aitsen@mail.ee> Cc: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200302122300.55135.will@unfoldings.net> X-Spam-Score: (/) X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *18j405-000OpI-00*qV5r5p93kY6* X-Virus-Scanned: by AMaViS snapshot-20020422 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wednesday 12 February 2003 22:54, Andres Aitsen wrote: > =DChel kenal p=E4eval (kolmap=E4ev, 12. veebruar 2003 21:45) kirjutas Ken= t=20 Stewart: > > On Wednesday 12 February 2003 11:21 am, parv wrote: > > > > I have a file called ??????????????? > > > > I can't seem to clean it away. > > > > > > > > rm ???????? > > > > rm '????????' > > > > rm "????????" > > > > > > > > all do not work. > > > > That is a lot of work when you could have just > > > > rm -- ??????????????? > > > > The "--" tells rm that what follows is a file name. > > Well, simple test showed, what does the job. > > %touch \?\?\?\?\?\?\?\?\?\?\?\?\?\?\? > %ls -l > total 0 > -rw-r--r-- 1 andres wheel 0 Feb 12 22:50 ??????????????? > %rm \?\?\?\?\?\?\?\?\?\?\?\?\?\?\? > %ls -l > % > > Andres > > Andres.Aitsen@mail.ee > Or, if you are using csh: %touch '?????' %ls -lh '?????' =2Drw-r--r-- 1 will will 0B Feb 12 22:58 ????? %rm '?????' %ls -lh '?????' ls: ?????: No such file or directory % Note, single quotes ('), not double quotes ("). The reason for this is that shells will still inspect variables and wild=20 cards inside double quotes. Inside single quotes, you could even put a=20 double quote without having problems. Will > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message =2D-=20 Willie Viljoen =46reelance IT Consultant 214 Paul Kruger Avenue, Universitas Bloemfontein 9321 South Africa +27 51 522 15 60 +27 51 522 44 36 (after hours) +27 82 404 03 27 (mobile) will@unfoldings.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message