git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: How to supply "raw" bytes to git grep?

From
KNKalle Olavi Niemitalo <kon@iki.fi>
Date
Sep 18, 2008, 22:07 UTC
Message-ID
<871vzhglab.fsf@Astalo.kon.iki.fi>
In-Reply-To
<8c9a060809180846j25e4eb44h291b017aa01bbe36@mail.gmail.com>
"Jacob Helwig" <jacob.helwig@gmail.com> writes:
> Inserting a literal carriage return seems to do the trick for me, in bash.
>
> git grep --cached -I -l -e <Ctrl-V><Ctrl-M>

In bash, $'\r' works too, and may be nicer to edit. Better not use that with #! /bin/sh though.

Previous: Johan HerlandNext: Jakub Narebski
Message 4 of 5 in “How to supply "raw" bytes to git grep?”
  1. Johan HerlandSep 18, 2008
  2. Jacob HelwigSep 18, 2008
  3. Johan HerlandSep 18, 2008
  4. Kalle Olavi NiemitaloSep 18, 2008
  5. Jakub NarebskiSep 18, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.