<?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: Hack 17. Grep Command Examples</title>
	<atom:link href="http://linux.101hacks.com/linux-commands/grep-command-examples/feed/" rel="self" type="application/rss+xml" />
	<link>http://linux.101hacks.com/linux-commands/grep-command-examples/</link>
	<description>Free eBook to Build a Strong Foundation in UNIX / Linux</description>
	<lastBuildDate>Sun, 08 Aug 2010 06:48:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: murali</title>
		<link>http://linux.101hacks.com/linux-commands/grep-command-examples/comment-page-1/#comment-222</link>
		<dc:creator>murali</dc:creator>
		<pubDate>Wed, 10 Feb 2010 00:32:55 +0000</pubDate>
		<guid isPermaLink="false">http://linux.101hacks.com/?p=87#comment-222</guid>
		<description>hi ,
   what is d dirrerence between
a. grep &quot;John Doe&quot; my-file &gt; /dev/null 2&gt;&amp;1
b. grep &quot;John Doe&quot; my-file  2&gt;&amp;1 &gt; /dev/null</description>
		<content:encoded><![CDATA[<p>hi ,<br />
   what is d dirrerence between<br />
a. grep &#8220;John Doe&#8221; my-file &gt; /dev/null 2&gt;&amp;1<br />
b. grep &#8220;John Doe&#8221; my-file  2&gt;&amp;1 &gt; /dev/null</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jahman</title>
		<link>http://linux.101hacks.com/linux-commands/grep-command-examples/comment-page-1/#comment-11</link>
		<dc:creator>Jahman</dc:creator>
		<pubDate>Fri, 15 Jan 2010 21:08:50 +0000</pubDate>
		<guid isPermaLink="false">http://linux.101hacks.com/?p=87#comment-11</guid>
		<description>Hi, 

Another tip ;), grep is very slow on UTF-8. Use &quot;LANG=C grep ...&quot; to increase speed.

$ echo $LANG
en_US.UTF-8
$ time grep &#039;^....&#039; /usr/share/dict/words &gt;/dev/null 
real    2m16.795s
user    2m10.536s
sys     0m0.087s


$ export LANG=C
$ time grep &#039;^....&#039; /usr/share/dict/words &gt;/dev/null 
real    0m0.031s
user    0m0.028s
sys     0m0.003s


Source: http://rg03.wordpress.com/2009/09/09/gnu-grep-is-slow-on-utf-8/</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>Another tip <img src='http://linux.101hacks.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> , grep is very slow on UTF-8. Use &#8220;LANG=C grep &#8230;&#8221; to increase speed.</p>
<p>$ echo $LANG<br />
en_US.UTF-8<br />
$ time grep &#8216;^&#8230;.&#8217; /usr/share/dict/words &gt;/dev/null<br />
real    2m16.795s<br />
user    2m10.536s<br />
sys     0m0.087s</p>
<p>$ export LANG=C<br />
$ time grep &#8216;^&#8230;.&#8217; /usr/share/dict/words &gt;/dev/null<br />
real    0m0.031s<br />
user    0m0.028s<br />
sys     0m0.003s</p>
<p>Source: <a href="http://rg03.wordpress.com/2009/09/09/gnu-grep-is-slow-on-utf-8/" rel="nofollow">http://rg03.wordpress.com/2009/09/09/gnu-grep-is-slow-on-utf-8/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
