Re: recursive search using grep and find

Charles Calvert <[email protected]> Tue, 10 Jan 2012 09:21:55 -0500
Newsgroups gmane.comp.windows.gnu.user
Message-ID <[email protected]>
On 1/10/2012 8:33 AM, Weiyu Yi wrote:
> 
> I have just installed gnuutils(find and grep) in my winxp(32) system.
> 
> when I try to find some files containing some certain string
> recursively, something strange happens
> 
> i.e. grep -l 'something' -R *

If you're using the WinXP command shell, this should be:

grep -rl "something" *.*

If you're using PowerShell, bash or zsh, it should be:

grep -rl 'something' *

-- 
Charles Calvert


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev