Date: Fri, 10 Oct 2008 21:42:41 +0200 (CEST) From: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> To: Jeremy Chadwick <koitsu@FreeBSD.org> Cc: Joe Tseng <joe_tseng@hotmail.com>, freebsd-questions@FreeBSD.org Subject: Re: gzipping multiple files w/o tarring Message-ID: <20081010214211.J79246@wojtek.tensor.gdynia.pl> In-Reply-To: <20081010185438.GA40860@icarus.home.lan> References: <BAY117-W12F038ED445086170210BE9B350@phx.gbl> <20081010185438.GA40860@icarus.home.lan>
next in thread | previous in thread | raw e-mail | index | archive | help
> > "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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081010214211.J79246>