From owner-cvs-all Fri Sep 13 6:11:23 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 742E737B400; Fri, 13 Sep 2002 06:11:15 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF26543E42; Fri, 13 Sep 2002 06:11:13 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id XAA16457; Fri, 13 Sep 2002 23:11:01 +1000 Date: Fri, 13 Sep 2002 23:15:56 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Akinori MUSHA Cc: Kris Kennaway , Maxim Sobolev , "David E. O'Brien" , , Subject: Re: cvs commit: src/etc newsyslog.conf In-Reply-To: <86ofb3c75p.wl@archon.local.idaemons.org> Message-ID: <20020913222322.C9886-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 13 Sep 2002, Akinori MUSHA wrote: > At Thu, 12 Sep 2002 12:35:32 -0700, > kkenn wrote: > > > Is this really necessary? bzip2 is much more CPU/memory hungry, so > > > that this change could really bite low-end machines. > > > > It's only a default..it can trivially be changed. Compressing > > logfiles is only done infrequently anyway, so it's not a heavy system > > load. > > > > > What's the gain? > > > > Smaller logfiles, obviously. > > I'd note that our zgrep(1) does not support bz2 files nor have we > something called bzgrep(1). It is a mess that you can't do a grep > over uncompressed files, gzip'd files and bzip2'd files at once. Similarly for "less *". It is a mess that users have to write their own scripts to support various types of files, and that the scripts have to exec a lot of processes to work right (they need approx. 1 `file' process for each file and one process for each file that needs to be uncompressed). > Do we have as handy a command as the following one that used to work > before the switchover? > > $ zgrep foo messages* > > If not, I want bzgrep in the base.. > > (bzcat messages* | grep foo is not an option because file names will > be missing from the output) Is this much of a problem? It would be more of a problem that bzcat doesn't work on plain "messages" (unlike zgrep). "less messages* | grep foo" can search all the files. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message