Re: git log -S not finding all commits?
- From
- Scott Wiersdorf <scott@perlcode.org>
- Date
- Oct 9, 2009, 12:41 UTC
- Message-ID
- <20091009124149.GA50560@perlcode.org>
- In-Reply-To
- <vpq1vldx7xx.fsf@bauges.imag.fr>
On Fri, Oct 09, 2009 at 10:55:38AM +0200, Matthieu Moy wrote:
Show 5 quoted lines
> > > > perl -0 -ne 'print if /this/' > > Also, this seems to actually print the \0 character. Perhaps a perl > guru can give a simple solution to replace the \0 by a \n?
If you want some indication that there is a null character:
perl -0 -ne '/this/ or next; s/\0/{NULL}/g; print'otherwise:
perl -0 -ne '/this/ or next; s/\0/\n/g; print'
Scott
-- Scott Wiersdorf <scott@perlcode.org>