1828360 Members
3173 Online
109976 Solutions
New Discussion

zgrep on VMS

 
Mohammad Kaleem
Advisor

zgrep on VMS

Hi,

Is there any utility availabe which can be used same like zgrep in Unix.

I want to search some values from zip files with running unzip.

Best regards,
Mohammad
MKQ
4 REPLIES 4
Lokesh_2
Esteemed Contributor

Re: zgrep on VMS

Hi,

I guess Gnu Zip for VMS give zgrep feature. Gnu Zip you can find on open vms freeware site:

http://h71000.www7.hp.com/openvms/freeware/index.html

Check for V6 freeware CD.

Good luck,
Regards,
Lokesh
What would you do with your life if you knew you could not fail?
Ian Miller.
Honored Contributor

Re: zgrep on VMS

the latest gzip for vms is here
http://www.oooovms.dyndns.org/gnv/gzip/

I don't know if it does zgrep.
____________________
Purely Personal Opinion
Martin P.J. Zinser
Honored Contributor

Re: zgrep on VMS

Hello Mohammad,

zgrep is not part of gzip. Actually at least on my system it is a shell script doing the decompress "under the hood".

A simple solution would be something along the lines

pipe gunzip -c file.ext-gz | search sys$pipe:

Greetings, Martin
Craig A Berry
Honored Contributor

Re: zgrep on VMS

When you say "like zgrep" it is not clear whether the archives are gzip archives for which you simply want a zgrep implementation, or ZIP archives that you want to search in a manner analogous to what zgrep does for gzip archives.

For ZIP archives, there is a zipGrep.pl script in the examples directory of the Perl extension Archive::Zip. See:

http://search.cpan.org/~nedkonz/Archive-Zip-1.10/

You will also need to install the Compress::Zlib extension, and, of course, Perl.