<?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>Thu, 01 Dec 2011 10:33:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Dhanesh</title>
		<link>http://linux.101hacks.com/linux-commands/grep-command-examples/comment-page-1/#comment-3787</link>
		<dc:creator>Dhanesh</dc:creator>
		<pubDate>Tue, 14 Jun 2011 04:09:56 +0000</pubDate>
		<guid isPermaLink="false">http://linux.101hacks.com/?p=87#comment-3787</guid>
		<description>i have a file which contains different combination of numbers
eg :
1 2 3 4 5 6
1 2 3 4
1 2 3 4 5 6 7 8 9

i want to seach 1 2 3 4 5 6, and want to get all the results which contain these 6 numbers and also 1 2 3 4 should show in my results</description>
		<content:encoded><![CDATA[<p>i have a file which contains different combination of numbers<br />
eg :<br />
1 2 3 4 5 6<br />
1 2 3 4<br />
1 2 3 4 5 6 7 8 9</p>
<p>i want to seach 1 2 3 4 5 6, and want to get all the results which contain these 6 numbers and also 1 2 3 4 should show in my results</p>
]]></content:encoded>
	</item>
	<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>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Content Delivery Network via Amazon Web Services: CloudFront: static.101hacks.com

Served from: linux.101hacks.com @ 2012-02-04 04:26:08 -->
