Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Sep 2002 23:15:56 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Akinori MUSHA <knu@iDaemons.org>
Cc:        Kris Kennaway <kris@obsecurity.org>, Maxim Sobolev <sobomax@FreeBSD.org>, "David E. O'Brien" <obrien@FreeBSD.org>, <cvs-committers@FreeBSD.org>, <cvs-all@FreeBSD.org>
Subject:   Re: cvs commit: src/etc newsyslog.conf
Message-ID:  <20020913222322.C9886-100000@gamplex.bde.org>
In-Reply-To: <86ofb3c75p.wl@archon.local.idaemons.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020913222322.C9886-100000>