bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: bug in fgrep from http://unxutils.sourceforge.net/


From: Eli Zaretskii
Subject: Re: bug in fgrep from http://unxutils.sourceforge.net/
Date: Thu, 25 Aug 2005 06:29:00 +0300

> Date: Wed, 24 Aug 2005 13:22:51 -0400
> From: Chuck Swiger <address@hidden>
> Cc: address@hidden
> 
> Consider the following:
> 
>       fgrep -r "def" .
>       fgrep "def" *.py */*.py */*/*.py
>       fgrep "def" **/*.py             # this depends on your shell
>       find . -name "*.py" | xargs fgrep "def"
>       find . -name "*.py" -print0 | xargs -0 fgrep "def"

You forgot the following possibility, which has the advantage that it
does not need any shell features (i.e., it will work on Windows
without Cygwin as well):

        fgrep -r "def" . --include="*.py"




reply via email to

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