<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Tech-Recipes - Latest Comments in Recursive grep | UNIX | Tech-Recipes</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><language>en</language><lastBuildDate>Wed, 17 Dec 2008 17:07:44 -0000</lastBuildDate><item><title>Re: Recursive grep | UNIX | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/732/recursive-grep/#comment-4467848</link><description>This is a fantastic tip, thank you!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lee</dc:creator><pubDate>Wed, 17 Dec 2008 17:07:44 -0000</pubDate></item><item><title>Re: Recursive grep | UNIX | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/732/recursive-grep/#comment-2768759</link><description>For those of you with a really stripped down config with no xargs and a find that doesn't support -exec, the old fashioned way:&lt;br&gt;&lt;br&gt;&lt;code&gt;for i in `find &amp;lt;path&amp;gt;`; do grep &amp;lt;pattern&amp;gt; $i; done&lt;/code&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 21 Jun 2007 04:41:42 -0000</pubDate></item><item><title>Re: Recursive grep | UNIX | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/732/recursive-grep/#comment-2768758</link><description>find|xargs grep 'search text'&lt;br&gt;&lt;br&gt;is easier to type :-)&lt;br&gt;&lt;br&gt;xargs rocks.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sun, 27 May 2007 06:51:15 -0000</pubDate></item><item><title>Re: Recursive grep | UNIX | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/732/recursive-grep/#comment-2768757</link><description>It's so great. Thanks.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 15 Nov 2005 16:11:13 -0000</pubDate></item><item><title>Re: Recursive grep | UNIX | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/732/recursive-grep/#comment-2768756</link><description>find /users/ -type f -name "*" -exec grep -ls sqlload {} ;&lt;br&gt;It gives output like this:&lt;br&gt;/users/hattb/shirley_test_file&lt;br&gt;&lt;br&gt;The -type f switch tells it to only look in text files.&lt;br&gt;If you want to redirect the output to a file: &lt;br&gt;find /users/hattb -type f -name "*" -exec grep -ls sqlload {} ; &amp;gt;out.txt&lt;br&gt;&lt;br&gt;Hope this helps,&lt;br&gt;Shirley</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 03 Aug 2005 03:28:50 -0000</pubDate></item><item><title>Re: Recursive grep | UNIX | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/732/recursive-grep/#comment-2768755</link><description>find . -name "*" -exec grep &amp;lt;pattern&amp;gt; {} /dev/null ;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">seacoder</dc:creator><pubDate>Thu, 30 Jun 2005 04:00:39 -0000</pubDate></item><item><title>Re: Recursive grep | UNIX | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/732/recursive-grep/#comment-2768754</link><description>that's great and all, but you dont get filenames</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 28 Apr 2005 10:30:36 -0000</pubDate></item><item><title>Re: Recursive grep | UNIX | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/732/recursive-grep/#comment-2768753</link><description>Thank you so much,&lt;br&gt;&lt;br&gt;It is one of those days.. I spent almost an hour for this.....&lt;br&gt;&lt;br&gt;Best, peace...&lt;br&gt;Hal</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">htihan</dc:creator><pubDate>Mon, 18 Apr 2005 04:25:13 -0000</pubDate></item></channel></rss>