|
| 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) |
william.a.george@gmail.com 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.
| [Prev in Thread] | Current Thread | [Next in Thread] |