Comments on: grep all files and sub-directories in a directory for a string http://www.tonyspencer.com/2005/10/14/grep-all-files-and-sub-directories-in-a-directory-for-a-string/ It's Just Links Wed, 14 Sep 2011 13:47:04 +0000 http://wordpress.org/?v=2.9.1 hourly 1 By: Tal http://www.tonyspencer.com/2005/10/14/grep-all-files-and-sub-directories-in-a-directory-for-a-string/comment-page-1/#comment-64127 Tal Tue, 11 Mar 2008 16:18:37 +0000 http://www.tonyspencer.com/2005/10/14/grep-all-files-and-sub-directories-in-a-directory-for-a-string/#comment-64127 Guys, Not all Unixes have a "grep" that supports the "-r" option. This command is little longer but will work on any unix: find top-dir -exec grep whatever /dev/null {} \; Guys,

Not all Unixes have a “grep” that supports the “-r” option.
This command is little longer but will work on any unix:

find top-dir -exec grep whatever /dev/null {} \;

]]>
By: Anonymous http://www.tonyspencer.com/2005/10/14/grep-all-files-and-sub-directories-in-a-directory-for-a-string/comment-page-1/#comment-430 Anonymous Wed, 09 Nov 2005 13:29:01 +0000 http://www.tonyspencer.com/2005/10/14/grep-all-files-and-sub-directories-in-a-directory-for-a-string/#comment-430 -i means ignorecase -i means ignorecase

]]>
By: Tony Spencer http://www.tonyspencer.com/2005/10/14/grep-all-files-and-sub-directories-in-a-directory-for-a-string/comment-page-1/#comment-429 Tony Spencer Wed, 26 Oct 2005 00:26:55 +0000 http://www.tonyspencer.com/2005/10/14/grep-all-files-and-sub-directories-in-a-directory-for-a-string/#comment-429 Hey Scott, I'm not sure what the difference is. I only pulled this trick out my <a href="http://www.oreilly.com/catalog/linuxpg/" rel="nofollow">little reference book</a>. Hey Scott,
I’m not sure what the difference is. I only pulled this trick out my little reference book.

]]>
By: Scott Wilson http://www.tonyspencer.com/2005/10/14/grep-all-files-and-sub-directories-in-a-directory-for-a-string/comment-page-1/#comment-428 Scott Wilson Tue, 25 Oct 2005 17:36:36 +0000 http://www.tonyspencer.com/2005/10/14/grep-all-files-and-sub-directories-in-a-directory-for-a-string/#comment-428 Tony, what's the difference between -i and -name? I have used the -name switch a lot with success, as in: grep ./ -name foo Tony, what’s the difference between -i and -name? I have used the -name switch a lot with success, as in:

grep ./ -name foo

]]>