Re: searching big gzipped files
- From: "Chris F.A. Johnson" <cfajohnson@xxxxxxxxx>
- Date: Thu, 29 Mar 2007 16:42:13 -0400
On 2007-03-29, asdf wrote:
I have a number of gzipped files that are created on the fly by
another process piping output to gzip. These files are too big to
save to disk in regular manner.
Problem is I would like to grep for data in the unzipped form of the
file.
I normally do a zcat foo.gz | grep "something"
This works but is pretty slow. I was wondering if there was a way of
taking a ".gz" file and building sometype of index so its uncompressed
form could be searched quickly, and where there is no need to unzip
the file...
zgrep "something" foo.gz
--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
.
- References:
- searching big gzipped files
- From: asdf
- searching big gzipped files
- Prev by Date: Re: A Suggestion For Higher-Quality Open-Source Software
- Next by Date: PGP on Linux
- Previous by thread: Re: searching big gzipped files
- Next by thread: PGP on Linux
- Index(es):
Relevant Pages
|