From: Scott Wiersdorf Date: Fri, 09 Oct 2009 12:41:50 GMT Subject: Re: git log -S not finding all commits? Message-ID: <20091009124149.GA50560@perlcode.org> In-Reply-To: On Fri, Oct 09, 2009 at 10:55:38AM +0200, Matthieu Moy wrote: > > > > 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