[plug] comparing files

John Usher (Maptek) John.Usher at perth.maptek.com.au
Wed Sep 4 15:40:28 WST 2002


-I only ignores changes that just add or delete a line that matches. It
doesn't leave out lines that are changed which match the regex.

...John...

-----Original Message-----
From: Mike Holland [mailto:myk at plug.linux.org.au] 
Sent: Wednesday, 4 September 2002 3:09 PM
To: plug at plug.linux.org.au
Subject: Re: [plug] comparing files


On Wed, 4 Sep 2002, Brian Tombleson wrote:

> try:
>   diff sendmail.cf sendmail.cf.rpmnew

Sometimes I want to filter out changes to comments.
What is wrong with the following:

% diff -I '^#.*'  <old> <new>

I'm trying to ignore all lines beginning with '#'. Bad regex?

-- 
        The origin of Truth is Doubt - Socrates




More information about the plug mailing list