Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <430DB7AC.40207@byu.net> Date: Thu, 25 Aug 2005 06:21:00 -0600 From: Eric Blake User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: Adrian Marsh CC: cygwin AT cygwin DOT com Subject: Re: Diff and grep problems References: <430D94E7 DOT 4080700 AT lucent DOT com> In-Reply-To: <430D94E7.4080700@lucent.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Adrian Marsh on 8/25/2005 3:52 AM: > I've trying to compare two files using diff from a .bat file : > > diff -iX scripts/%2.ignorelist "%difffile1%" "%difffile2%" > ... > > So I wanted to exclude the ntp line and I put it in the ignorelist. This is not cygwin specific. Read up on 'info diff' - the -X option is a file listing patterns of FILENAMES to ignore when diffing directories, not LINES to ignore within file pairs being diffed. Try -I instead. - -- Life is short - so eat dessert first! Eric Blake ebb9 AT byu DOT net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDDbes84KuGfSFAYARAhOMAKDE7oAK7J6ReXDHdcbvpXaR/+kbowCgjt+j P5QS4RWZKeZGHF6Yr/TDedo= =iSCz -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/