[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Grep --include does not work
From: |
Andreas Schwab |
Subject: |
Re: Grep --include does not work |
Date: |
Thu, 31 May 2007 16:20:45 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.97 (gnu/linux) |
LeonM <address@hidden> writes:
> For example if I have directories in Windows with binary and text file
> and if I do this:
> grep -R --include=*.txt "include" *
>
> it will grep even the binary files as well. Clearly this is wrong.
This is not a bug. The files mentioned on the command line will always
be considered, independent of --include. The latter is only consulted
for files encountered during the recursive walk.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."