bug-grep
[Top][All Lists]
Advanced

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

Re: grep -r doesn't work in Cygwin


From: eo rojas
Subject: Re: grep -r doesn't work in Cygwin
Date: Wed, 22 Apr 2009 23:52:20 -0700

is it possible that your files are utf-16?  I've found that grep under
cygwin at least does not work on utf-16 files?  An od of the first few bytes
will tell you.  It will have FEFF as the first two bytes if it is utf-16.

On Wed, Apr 22, 2009 at 11:22 AM, Chloe <address@hidden> wrote:

> Files in subdirectories are not being searched. See example below.
> TableDictionary.php is not found.
>
> address@hidden /cygdrive/c/Documents and Settings/Chloe/My Documents/GC
> Infotech/
> FFMS/public_html/payscape/psa
> $ grep bugs modules/*.php
>
> modules/TableDictionary.php:include_once("metadata/accounts_bugsMetaData.php");
>
> address@hidden /cygdrive/c/Documents and Settings/Chloe/My Documents/GC
> Infotech/
> FFMS/public_html/payscape/psa
> $ grep -r bugs *.php
> soap.php:                $bugs = $contact->get_linked_beans('bugs','Bug');
>
> address@hidden /cygdrive/c/Documents and Settings/Chloe/My Documents/GC
> Infotech/
> FFMS/public_html/payscape/psa
> $ grep --recursive bugs *.php
> soap.php:                $bugs = $contact->get_linked_beans('bugs','Bug');
>
> address@hidden /cygdrive/c/Documents and Settings/Chloe/My Documents/GC
> Infotech/
> FFMS/public_html/payscape/psa
> $
>



-- 
------
emilio


reply via email to

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