<?xml version="1.0" encoding="windows-1252"?>
<node id="538598" title="Re^4: dynamic zcat and grep" created="2006-03-22 15:30:30" updated="2006-03-22 10:30:30">
<type id="11">
note</type>
<author id="538312">
clmcshque</author>
<data>
<field name="doctext">
Thanks for the reply. zgrep works great on the command line, but how do I get it to work within my script? Could I do the following: (I would try it but don't have access to the system right now)
&lt;code&gt;
$grep = /something/;
$gzfile = file.gz;
open OUTPUT "zgrep $grep $gzfile |";
&lt;/code&gt;</field>
<field name="root_node">
538316</field>
<field name="parent_node">
538365</field>
</data>
</node>
