<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Script day: grep in jar (or zip) files</title>
	<atom:link href="http://geek.co.il/wp/2009/09/14/script-day-grep-in-jar-or-zip-files/feed" rel="self" type="application/rss+xml" />
	<link>http://geek.co.il/wp/2009/09/14/script-day-grep-in-jar-or-zip-files</link>
	<description>Thoughts about the universe in general</description>
	<lastBuildDate>Wed, 25 Jan 2012 18:13:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-19719</generator>
	<item>
		<title>By: Oded</title>
		<link>http://geek.co.il/wp/2009/09/14/script-day-grep-in-jar-or-zip-files/comment-page-1#comment-237257</link>
		<dc:creator>Oded</dc:creator>
		<pubDate>Sat, 11 Dec 2010 00:37:06 +0000</pubDate>
		<guid isPermaLink="false">http://geek.co.il/wp/?p=1175#comment-237257</guid>
		<description>The script would work fine for that purpose, just use the &quot;alternative loop&quot; code inside the loop instead of my &quot;rpm finding&quot; code.</description>
		<content:encoded><![CDATA[<p>The script would work fine for that purpose, just use the &#8220;alternative loop&#8221; code inside the loop instead of my &#8220;rpm finding&#8221; code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Ortega</title>
		<link>http://geek.co.il/wp/2009/09/14/script-day-grep-in-jar-or-zip-files/comment-page-1#comment-237145</link>
		<dc:creator>John Ortega</dc:creator>
		<pubDate>Fri, 10 Dec 2010 09:36:40 +0000</pubDate>
		<guid isPermaLink="false">http://geek.co.il/wp/?p=1175#comment-237145</guid>
		<description>Ok,

That was easy.

But, what I need is to search a lib directory with a bunch of jar files or zip files. Inside of the files there may be class files or xml files. I need to read the xml files and see if a certain string occurs in it or not.

Any help?

John Ortega
madridlinuxgroup.blogspot.com
madridlinuxgroup@gmail.com</description>
		<content:encoded><![CDATA[<p>Ok,</p>
<p>That was easy.</p>
<p>But, what I need is to search a lib directory with a bunch of jar files or zip files. Inside of the files there may be class files or xml files. I need to read the xml files and see if a certain string occurs in it or not.</p>
<p>Any help?</p>
<p>John Ortega<br />
madridlinuxgroup.blogspot.com<br />
<a href="mailto:madridlinuxgroup@gmail.com">madridlinuxgroup@gmail.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oded</title>
		<link>http://geek.co.il/wp/2009/09/14/script-day-grep-in-jar-or-zip-files/comment-page-1#comment-213509</link>
		<dc:creator>Oded</dc:creator>
		<pubDate>Sun, 08 Nov 2009 23:29:37 +0000</pubDate>
		<guid isPermaLink="false">http://geek.co.il/wp/?p=1175#comment-213509</guid>
		<description>P.S - I don&#039;t like preview comments as I think they are redundant. I will investigate adding them anyway though.</description>
		<content:encoded><![CDATA[<p>P.S &#8211; I don&#8217;t like preview comments as I think they are redundant. I will investigate adding them anyway though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oded</title>
		<link>http://geek.co.il/wp/2009/09/14/script-day-grep-in-jar-or-zip-files/comment-page-1#comment-213508</link>
		<dc:creator>Oded</dc:creator>
		<pubDate>Sun, 08 Nov 2009 23:28:54 +0000</pubDate>
		<guid isPermaLink="false">http://geek.co.il/wp/?p=1175#comment-213508</guid>
		<description>The problem of shell variable escaping is known, and in this simple example (as well as most other scripts I write) I choose to ignore it unless I know for a fact that the values I&#039;m dealing with are expected to include word delimiters (IFR in bash-speak).

Specifically in this case, jar files very rarely include white space (I could say &quot;never&quot; as I haven&#039;t see such a case in all my years, but as they say - &quot;never say never&quot;) and class files are not allowed to include white space in their names by the Java language specification.

I do quote the submitted pattern in the above example, because it is always important to make sure user input can&#039;t escape into your script, regardless of what it is matched against :-) .</description>
		<content:encoded><![CDATA[<p>The problem of shell variable escaping is known, and in this simple example (as well as most other scripts I write) I choose to ignore it unless I know for a fact that the values I&#8217;m dealing with are expected to include word delimiters (IFR in bash-speak).</p>
<p>Specifically in this case, jar files very rarely include white space (I could say &#8220;never&#8221; as I haven&#8217;t see such a case in all my years, but as they say &#8211; &#8220;never say never&#8221;) and class files are not allowed to include white space in their names by the Java language specification.</p>
<p>I do quote the submitted pattern in the above example, because it is always important to make sure user input can&#8217;t escape into your script, regardless of what it is matched against <img src='http://geek.co.il/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shlomi Fish</title>
		<link>http://geek.co.il/wp/2009/09/14/script-day-grep-in-jar-or-zip-files/comment-page-1#comment-213416</link>
		<dc:creator>Shlomi Fish</dc:creator>
		<pubDate>Sat, 07 Nov 2009 08:31:17 +0000</pubDate>
		<guid isPermaLink="false">http://geek.co.il/wp/?p=1175#comment-213416</guid>
		<description>Hi Oded!

Your code here suffers from potential shell-variable injection. See my posts about:

&lt;a href=&quot;http://community.livejournal.com/shlomif_tech/35301.html&quot; rel=&quot;nofollow&quot;&gt;Code Injection&lt;/a&gt;

&lt;a href=&quot;http://community.livejournal.com/shlomif_tech/14671.html&quot; rel=&quot;nofollow&quot;&gt;Shell Variable Injection&lt;/a&gt;

And why can&#039;t we have comment previews here? Stupid and incredibly lame WordPress.</description>
		<content:encoded><![CDATA[<p>Hi Oded!</p>
<p>Your code here suffers from potential shell-variable injection. See my posts about:</p>
<p><a href="http://community.livejournal.com/shlomif_tech/35301.html" rel="nofollow">Code Injection</a></p>
<p><a href="http://community.livejournal.com/shlomif_tech/14671.html" rel="nofollow">Shell Variable Injection</a></p>
<p>And why can&#8217;t we have comment previews here? Stupid and incredibly lame WordPress.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

