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 LinksWed, 14 Sep 2011 13:47:04 +0000http://wordpress.org/?v=2.9.1hourly1By: 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
TalTue, 11 Mar 2008 16:18:37 +0000http://www.tonyspencer.com/2005/10/14/grep-all-files-and-sub-directories-in-a-directory-for-a-string/#comment-64127Guys,
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
AnonymousWed, 09 Nov 2005 13:29:01 +0000http://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 SpencerWed, 26 Oct 2005 00:26:55 +0000http://www.tonyspencer.com/2005/10/14/grep-all-files-and-sub-directories-in-a-directory-for-a-string/#comment-429Hey 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 WilsonTue, 25 Oct 2005 17:36:36 +0000http://www.tonyspencer.com/2005/10/14/grep-all-files-and-sub-directories-in-a-directory-for-a-string/#comment-428Tony, what's the difference between -i and -name? I have used the -name switch a lot with success, as in:
grep ./ -name fooTony, what’s the difference between -i and -name? I have used the -name switch a lot with success, as in: