Re: Using ZCAT & grep

From: Tom Wood (twood@rezlink.com)
Date: Wed Feb 18 2004 - 08:38:05 EST


You should be able to use zgrep as a replacement for grep. This should
allow "zgrep searchme test.z" to find what you are looking for without
having to pipe the whole uncompressed file.

Tom

-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
Kumar, Praveen (cahoot)
Sent: Wednesday, February 18, 2004 4:43 AM
To: aix-l@Princeton.EDU
Subject: Using ZCAT & grep

Hi *,
        I have a compressed file from which i want to search for a
specific
pattern say "Searchme" . Can someone help doing this. I am trying with
this
command

zcat test.Z|grep -v "Searcheme"

TIA
Praveen.K

*********************
Internet communications are not necessarily secure and may be
intercepted or
changed after they are sent. cahoot does not accept liability for any
such
changes.
If you wish to confirm the origin or content of this communication,
please
contact the sender using an alternative means of communication.

This communication does not create or modify any contract.

This email may contain confidential information intended solely for use
by
the addressee. If you are not the intended recipient of this
communication
you should destroy it without copying, disclosing or otherwise using its
contents.

Please notify the sender immediately of the error.

cahoot is a division of Abbey National plc.
Abbey National plc is registered in England, registered number 2294747.
Registered Office: Abbey National House, 2 Triton Square, Regent's
Place,
London, NW1 3AN.



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:36 EDT