Execute Perl Regular Expression on all zip files unix
<p>I have collections of zip files in that i have some xml data.On that data i want to execute Perl regular expression from command line .But the command is only working on non zipped files and for zipped file it is not wokring.</p>

<pre><code> perl -ne '/ID:([0-9.]+).+Test=\"([\d\w.-\s]+)\"/ and print "$1 $2\n"' data.log.gz  | sort -nr | uniq -c | sort -nr
</code></pre>

<p>Sample XML structure:</p>

<pre><code>ABC ID:12342132: &lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;a Test="ABC"&gt;&lt;/a&gt;
</code></pre>