<?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: Search in Files using PHP Script with unix commands</title>
	<atom:link href="http://magentocoder.jigneshpatel.co.in/php/search-in-files-with-php-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://magentocoder.jigneshpatel.co.in/php/search-in-files-with-php-script/</link>
	<description>hacks &#38; solutions for Magento Ecommerce development</description>
	<lastBuildDate>Tue, 29 Jun 2010 07:01:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: admin</title>
		<link>http://magentocoder.jigneshpatel.co.in/php/search-in-files-with-php-script/comment-page-1/#comment-99</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 10 Sep 2009 04:13:14 +0000</pubDate>
		<guid isPermaLink="false">http://magentocoder.jigneshpatel.co.in/?p=6#comment-99</guid>
		<description>Hi Jignesh,
Thanks for your comments. I will surely implement your suggestions.</description>
		<content:encoded><![CDATA[<p>Hi Jignesh,<br />
Thanks for your comments. I will surely implement your suggestions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jignesh Thummar</title>
		<link>http://magentocoder.jigneshpatel.co.in/php/search-in-files-with-php-script/comment-page-1/#comment-98</link>
		<dc:creator>Jignesh Thummar</dc:creator>
		<pubDate>Wed, 09 Sep 2009 19:32:42 +0000</pubDate>
		<guid isPermaLink="false">http://magentocoder.jigneshpatel.co.in/?p=6#comment-98</guid>
		<description>Hi, good one. But i have a suggestion for you. If you are searching into file, you might be interested into line number of the search keyword. 
for that i would recommend you to use following command:
$script = &quot;grep -n -r &#039;$item&#039; &quot;.dirname(__FILE__).&quot;/app&quot;;

If you are using this command you might need to remove htmlentities(), to make it proper display. Though not sure on it. 

I think, &#039;grep&#039; command is faster then using lots of &#039;piped-find&#039; command. Another advantage of grep is that you can apply pattern(this is where command line power comes in picture) inside, but for that you have to validate patterns in your script. For example, if you want to search either &quot;this&quot; or &quot;url&quot; using grep, you have to pass it as &quot;this\&#124;url&quot;

-Jignesh</description>
		<content:encoded><![CDATA[<p>Hi, good one. But i have a suggestion for you. If you are searching into file, you might be interested into line number of the search keyword.<br />
for that i would recommend you to use following command:<br />
$script = &#8220;grep -n -r &#8216;$item&#8217; &#8220;.dirname(__FILE__).&#8221;/app&#8221;;</p>
<p>If you are using this command you might need to remove htmlentities(), to make it proper display. Though not sure on it. </p>
<p>I think, &#8216;grep&#8217; command is faster then using lots of &#8216;piped-find&#8217; command. Another advantage of grep is that you can apply pattern(this is where command line power comes in picture) inside, but for that you have to validate patterns in your script. For example, if you want to search either &#8220;this&#8221; or &#8220;url&#8221; using grep, you have to pass it as &#8220;this\|url&#8221;</p>
<p>-Jignesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vivalkakira</title>
		<link>http://magentocoder.jigneshpatel.co.in/php/search-in-files-with-php-script/comment-page-1/#comment-35</link>
		<dc:creator>Vivalkakira</dc:creator>
		<pubDate>Fri, 07 Aug 2009 18:16:36 +0000</pubDate>
		<guid isPermaLink="false">http://magentocoder.jigneshpatel.co.in/?p=6#comment-35</guid>
		<description>i found you by link from the Directory Listing Script from Ash..  Nice to read your blog ^.^</description>
		<content:encoded><![CDATA[<p>i found you by link from the Directory Listing Script from Ash..  Nice to read your blog ^.^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sdanektir</title>
		<link>http://magentocoder.jigneshpatel.co.in/php/search-in-files-with-php-script/comment-page-1/#comment-34</link>
		<dc:creator>Sdanektir</dc:creator>
		<pubDate>Thu, 06 Aug 2009 22:48:13 +0000</pubDate>
		<guid isPermaLink="false">http://magentocoder.jigneshpatel.co.in/?p=6#comment-34</guid>
		<description>Excellent site. It was pleasant to me.</description>
		<content:encoded><![CDATA[<p>Excellent site. It was pleasant to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zashkaser</title>
		<link>http://magentocoder.jigneshpatel.co.in/php/search-in-files-with-php-script/comment-page-1/#comment-33</link>
		<dc:creator>Zashkaser</dc:creator>
		<pubDate>Thu, 06 Aug 2009 03:09:26 +0000</pubDate>
		<guid isPermaLink="false">http://magentocoder.jigneshpatel.co.in/?p=6#comment-33</guid>
		<description>If you are wondering how you can help with this or future events, please contact us . Also, you can contact other</description>
		<content:encoded><![CDATA[<p>If you are wondering how you can help with this or future events, please contact us . Also, you can contact other</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dirnov</title>
		<link>http://magentocoder.jigneshpatel.co.in/php/search-in-files-with-php-script/comment-page-1/#comment-3</link>
		<dc:creator>Dirnov</dc:creator>
		<pubDate>Sat, 18 Jul 2009 12:16:01 +0000</pubDate>
		<guid isPermaLink="false">http://magentocoder.jigneshpatel.co.in/?p=6#comment-3</guid>
		<description>Hi, Everything dynamic and very positively! :)
Thanks
Dirnov</description>
		<content:encoded><![CDATA[<p>Hi, Everything dynamic and very positively! <img src='http://magentocoder.jigneshpatel.co.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Thanks<br />
Dirnov</p>
]]></content:encoded>
	</item>
</channel>
</rss>
