From owner-freebsd-questions@FreeBSD.ORG Mon Apr 6 20:57:43 2009 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 47A44106590A for ; Mon, 6 Apr 2009 20:57:43 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: from mx1.identry.com (on.identry.com [66.111.0.194]) by mx1.freebsd.org (Postfix) with ESMTP id 0D4F38FC1D for ; Mon, 6 Apr 2009 20:57:42 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: (qmail 56751 invoked by uid 89); 6 Apr 2009 20:58:20 -0000 Received: from unknown (HELO ?192.168.1.110?) (jalmberg@75.127.142.66) by mx1.identry.com with ESMTPA; 6 Apr 2009 20:58:20 -0000 Mime-Version: 1.0 (Apple Message framework v753.1) Content-Transfer-Encoding: 7bit Message-Id: <5BF30BAA-2B35-46C8-8257-56B077D00A8C@identry.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-questions@freebsd.org From: John Almberg Date: Mon, 6 Apr 2009 16:57:39 -0400 X-Mailer: Apple Mail (2.753.1) Subject: How to remove all files with a certain extension 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: Mon, 06 Apr 2009 20:57:46 -0000 This is a real newbie question, but I can't figure it out... I want to remove all .tar files from a directory tree. I think something like the following should work, but I must have something wrong, because it doesn't: find . -name *.tar -exec rm /dev/null {} \; What am I doing wrong? Thanks: John