From: Phil Lawrence <prlawrence@gmail.com>
To: git <git@vger.kernel.org>
Subject: git grep -a doesn't find string in binary file
Date: Tue, 23 Mar 2010 16:06:58 -0600 [thread overview]
Message-ID: <530ac78e1003231506x295080cey858a5f393548cc53@mail.gmail.com> (raw)
I have a binary file with the string 'SEGMENT4' inside:
$ strings AR/reports/BMCD_AGED_AR_CUST.rdf | grep -i segment4
(CC.SEGMENT1 || '\n' || SEGMENT2 || '\n' || SEGMENT3 || '\n' || SEGMENT4 ...
grep sees it:
$ grep -li segment4 AR/reports/BMCD_AGED_AR_CUST.rdf | wc -l
1
git grep does not:
$ git grep -a -li segment4 AR/reports/BMCD_AGED_AR_CUST.rdf | wc -l
0
What am I missing?
Here is my environment info:
$ uname -a
MINGW32_NT-5.1 B8058 1.0.12(0.46/3/2) 2010-02-05 01:08 i686 unknown
$ git --version
git version 1.7.0.2.msysgit.0
Thank you,
Phil Lawrence
reply other threads:[~2010-03-23 22:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=530ac78e1003231506x295080cey858a5f393548cc53@mail.gmail.com \
--to=prlawrence@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).