From owner-freebsd-questions@FreeBSD.ORG Wed Feb 8 18:02:50 2012 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 C0D7E106566B for ; Wed, 8 Feb 2012 18:02:50 +0000 (UTC) (envelope-from gull@gull.us) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 5E9638FC16 for ; Wed, 8 Feb 2012 18:02:49 +0000 (UTC) Received: by wgbdq11 with SMTP id dq11so893320wgb.31 for ; Wed, 08 Feb 2012 10:02:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.180.89.71 with SMTP id bm7mr27765942wib.20.1328724169253; Wed, 08 Feb 2012 10:02:49 -0800 (PST) Received: by 10.180.88.130 with HTTP; Wed, 8 Feb 2012 10:02:49 -0800 (PST) X-Originating-IP: [128.95.17.160] In-Reply-To: <3DFDF5C0-2D39-4A88-B3B5-7D236A7FC4DA@dont-panic.org> References: <1237723287.20120207235924@yandex.ru> <4F31A15C.3050506@gmail.com> <3DFDF5C0-2D39-4A88-B3B5-7D236A7FC4DA@dont-panic.org> Date: Wed, 8 Feb 2012 10:02:49 -0800 Message-ID: From: David Brodbeck To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQmSzcMLKxlMhi7f9rp9wQQ44jxBIPQ3mrY12jZVLh3yefI2eMjGikwHW7XAYkaweg0KK9Va Subject: Re: 'rm' Can not delete files 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: Wed, 08 Feb 2012 18:02:50 -0000 2012/2/7 Ingo Hofmann : > What helps me sometimes is wrapping it up: > > for i in *; do rm $i; done Won't that just expand the * and result in the same problem? It seems like you've just moved the problem from the rm statement to the for statement.