diff question

Eric Cope eric.cope at gmail.com
Mon Oct 22 16:27:31 MST 2012


yes, thats exactly what I was looking for!!!
Thanks!

Eric

On Mon, Oct 22, 2012 at 4:24 PM, Joseph Sinclair
<plug-discussion at stcaz.net>wrote:

> I assume what you really want is to ignore all comment lines completely
> (not just changes to comment lines).
> Diff won't do this directly, but that's what [named] pipes are for :)
>
> try this:
> diff <(grep -v '^//' file1) <(grep -v '^//' file2)
>
> On 10/22/2012 01:59 PM, Eric Cope wrote:
> > Hi all,
> > I am trying to diff between two sets of files. I want to ignore comments
> > (lines that start with //).
> > I've tried
> >
> >    - diff -I "//" file1 file2
> >    - diff -I "\/\/" file1 file2
> >    - diff -I "//.* file1 file2
> >
> > among others. Has anyone successfully used diff and its ignore option?
> >
> > Thanks,
> > Eric
> >
> >
> >
> >
> > ---------------------------------------------------
> > PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> > To subscribe, unsubscribe, or to change your mail settings:
> > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20121022/5de61fa1/attachment.html>


More information about the PLUG-discuss mailing list