From owner-freebsd-questions@FreeBSD.ORG Fri Oct 10 19:42:47 2008 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 569871065697; Fri, 10 Oct 2008 19:42:47 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 7B4048FC0A; Fri, 10 Oct 2008 19:42:46 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.2) with ESMTP id m9AJgf7x079949; Fri, 10 Oct 2008 21:42:41 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.2/Submit) with ESMTP id m9AJgfre079942; Fri, 10 Oct 2008 21:42:41 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Fri, 10 Oct 2008 21:42:41 +0200 (CEST) From: Wojciech Puchar To: Jeremy Chadwick In-Reply-To: <20081010185438.GA40860@icarus.home.lan> Message-ID: <20081010214211.J79246@wojtek.tensor.gdynia.pl> References: <20081010185438.GA40860@icarus.home.lan> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Joe Tseng , freebsd-questions@FreeBSD.org Subject: Re: gzipping multiple files w/o tarring 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: Fri, 10 Oct 2008 19:42:47 -0000 > > "gzip *" will do what you want. > > When it encounters something that's already gzip'd, it will skip it, > but will emit a warning that it's doing so. > > Otherwise, you could use something like: > > find -X . \! -name "*.tar.gz" -type f -maxdepth 1 | xargs gzip > i don't understand the difference. .tar.gz files are already gzip'd :), so no need for second case. it will be skipped anyway