[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: A UNIX Query..
- Subject: Re: A UNIX Query..
- From: Himadri Hazarika <himadrih@xxxxxxxxxxxx>
- Date: Wed, 04 Aug 1999 14:56:04 +0530
man zgrep
HTH
Nitin
Himadri Hazarika wrote:
> > I've got a problem for all UNIX users.
> >
> > ------ The problem -----
> >
> > We are using unix compression utilities
> > 'compress' and 'gzip' to archive the CDRs (Call data records). While
> > searching the archive, we use
> > 'ZCat' and 'grep'.
> >
> > The problem comes here: For the projected data volumes, the system
must
> > support
> > a read and write per day of app. 13 terabytes. In order to reduce
this
> > figure,
> > we are looking at some solution for searching through a compressed
file
> > without
> > uncompressing it. (Though ZCat does this without uncompressing to a
file
> >
> > explicitly, it actually uncompresses and redirects to standard
output.)
> >
> > Please could you give me more information on the following:
> >
> > Is it possible to search for a pattern/string through a
compressed
> > file
> > without uncompressing it?
> > If yes, is there any utility that supports this (for Unix)?
> > If it is not possible to search without uncompressing, is there
any
> > other way
> > of reducing the reads/writes to the primary hard disk system?
> > ----------------------------------------------------------------
> > Thanks
> >
> > - Himadri
Thanks Nitin,
zgrep still creates a temporary output file as its a combo of zcat and
grep i think. Is there some way around. Someone suggested modifying the
zcat code. Or else I guess the 13Tera file will have to be split into
manageable chunks which don't load the primary HD and then zgrep'ed.
- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
The Linux India mailing list does not accept postings in HTML format.
------------------------------