From owner-freebsd-questions@freebsd.org Sun Jul 1 21:42:35 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C1908FDDB7A for ; Sun, 1 Jul 2018 21:42:35 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) Received: from s1-b0c6.socketlabs.email-od.com (s1-b0c6.socketlabs.email-od.com [142.0.176.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7046C8002B for ; Sun, 1 Jul 2018 21:42:35 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1530481355; x=1533073355; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:to:from:date:x-thread-info; bh=i++N6s0l8PK/yvEZwYQnhHgacZtq5GA6/OiQsUyFtEg=; b=CW3ZBe320d9Bc0TNFpZyO5LvlyuIE4JhJtK6JR0eSvf7cZ+etMh3c0hzoyAkLa1afy1IqoeU3bUvqo/c7GV9pMbY+kO+sN0cV7hd/J93bioYOdqyQVIDg7Ov/EnC8uez5e6wJxYeYp26o9DyJegu/Tlqx61acrecUrJ65wPfVXc= X-Thread-Info: NDI1MC4xMi4xOGYwMDAwMDE3Y2FhYmMuZnJlZWJzZC1xdWVzdGlvbnM9ZnJlZWJzZC5vcmc= Received: from r4.h.in.socketlabs.com (s1-b40f.socketlabs.email-od.com [142.0.180.15]) by mxsg2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sun, 1 Jul 2018 16:42:14 -0400 Received: from smtp.lan.sohara.org (EMTPY [89.127.62.20]) by r4.h.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sun, 1 Jul 2018 16:42:12 -0400 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.90_1 (FreeBSD)) (envelope-from ) id 1fZjAf-000DJ2-QV for freebsd-questions@freebsd.org; Sun, 01 Jul 2018 20:42:09 +0000 Date: Sun, 1 Jul 2018 21:42:09 +0100 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Subject: Re: Problem deleting files Message-Id: <20180701214209.6b1f9d1f208e8387bfe33fa5@sohara.org> In-Reply-To: <20180702.044831.477271088854915236.yasu@utahime.org> References: <85B4CFC22AC0CA70B917D42D@Pauls-MacBook-Pro.local> <20180702.044831.477271088854915236.yasu@utahime.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd11.1) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jul 2018 21:42:35 -0000 On Mon, 02 Jul 2018 04:48:31 +0900 (JST) Yasuhiro KIMURA wrote: > Try following command. > > find . -type f -print0 | xargs -0 rm -f Better still (saves a lot of forking) find . -type f -delete -- Steve O'Hara-Smith