From owner-freebsd-questions@FreeBSD.ORG Fri Oct 10 22:31:06 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 CC527106569C for ; Fri, 10 Oct 2008 22:31:06 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA01.westchester.pa.mail.comcast.net (qmta01.westchester.pa.mail.comcast.net [76.96.62.16]) by mx1.freebsd.org (Postfix) with ESMTP id 794A78FC23 for ; Fri, 10 Oct 2008 22:31:06 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA14.westchester.pa.mail.comcast.net ([76.96.62.60]) by QMTA01.westchester.pa.mail.comcast.net with comcast id R1i31a00B1HzFnQ51AX6o2; Fri, 10 Oct 2008 22:31:06 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA14.westchester.pa.mail.comcast.net with comcast id RAX41a0042P6wsM3aAX4l4; Fri, 10 Oct 2008 22:31:05 +0000 X-Authority-Analysis: v=1.0 c=1 a=TS5l45rMeooA:10 a=QycZ5dHgAAAA:8 a=e2h4xFxg5Fdq_kNF9uoA:9 a=Rq_LDeKtyADWPqjDjKT-1peZxusA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id DFB7BC9419; Fri, 10 Oct 2008 15:31:03 -0700 (PDT) Date: Fri, 10 Oct 2008 15:31:03 -0700 From: Jeremy Chadwick To: Wojciech Puchar Message-ID: <20081010223103.GA44921@icarus.home.lan> References: <20081010185438.GA40860@icarus.home.lan> <20081010214211.J79246@wojtek.tensor.gdynia.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081010214211.J79246@wojtek.tensor.gdynia.pl> User-Agent: Mutt/1.5.18 (2008-05-17) 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 22:31:06 -0000 On Fri, Oct 10, 2008 at 09:42:41PM +0200, Wojciech Puchar wrote: >> >> "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. The 2nd will avoid the warnings emit by "gzip *" when encountering already-gzipped files. It all depends on what the user wants. > .tar.gz files are already gzip'd :), so no need for second case. it will > be skipped anyway -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |