info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep a string in subdirectories


From: netawater
Subject: Re: grep a string in subdirectories
Date: Tue, 21 Nov 2006 20:48:24 +0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (gnu/linux)

address@hidden writes:

> Hi.
> My problem is When I type this:
> find . | xargs grep test
> Then i get the message:
> xargs cannot fork.
>
> I'm using "UnixUtils" commands on windows XP... Can anybody help me to
> find a solution to my problem.

Please make a script like this:

find ../ -name '*.[ch]' -exec grep -H $1 '{}' ';'

it works very well in my Linux machine.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]