From owner-freebsd-questions@FreeBSD.ORG Thu Oct 20 02:25:52 2011 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 EABE11065709 for ; Thu, 20 Oct 2011 02:25:52 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id AE0288FC1B for ; Thu, 20 Oct 2011 02:25:52 +0000 (UTC) Received: from r56.edvax.de (port-92-195-104-16.dynamic.qsc.de [92.195.104.16]) by mx02.qsc.de (Postfix) with ESMTP id C565B1E121; Thu, 20 Oct 2011 04:25:51 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id p9K2Pp8m002186; Thu, 20 Oct 2011 04:25:51 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 20 Oct 2011 04:25:51 +0200 From: Polytropon To: Andy Wodfer Message-Id: <20111020042551.9427391a.freebsd@edvax.de> In-Reply-To: References: <201110191904.p9JJ4Ago092104@mail.r-bonomi.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions Subject: Re: Help! Can't delete files ... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2011 02:25:53 -0000 On Wed, 19 Oct 2011 21:32:39 +0200, Andy Wodfer wrote: > On Wed, Oct 19, 2011 at 9:04 PM, Robert Bonomi wrote: > > > A) learn to use wildcards. > > > > I know how to use wildcards, but I forgot to tell in my first email that > there are 4 files that have almost the same filenames, so I couldn't do it > this way. In this case, try to use a terminal emulator which does have support for UTF-8 both on input and on output. Make sure your charsets are configured properly. With this preparation, you should (1st) see the correct file names in your native language and (2nd) be able to enter (or complete) their filenames as desired on the command line. > > B) learn to use the '-i' option to rm > > C) learn to use 'echo' to 'test' filename expansions. > > > > Thanks! Very useful info. I may add: D) Learn to avoid non-ASCII characters in filenames (just like whitespaces and "special" characters). I'm following this rule for my entire "IT career" now and I'm very pleased by the results. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...