delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/15/11:53:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 15 Oct 2004 11:53:26 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: =?iso-8859-1?Q?Le_Dr=E9au_Philippe?= <pledreau AT prosodie DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: problem with diff -I 'regexp'
In-Reply-To: <A9C4AED47120D6119AFA00D0B7C84483028BED2D@Exchrouen.prosodie>
Message-ID: <Pine.GSO.4.61.0410151147550.20921@slinky.cs.nyu.edu>
References: <A9C4AED47120D6119AFA00D0B7C84483028BED2D AT Exchrouen DOT prosodie>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

---559023410-1297389768-1097855606=:20921
Content-Type: TEXT/PLAIN; charset=iso-8859-1
Content-Transfer-Encoding: 8BIT

On Fri, 15 Oct 2004, Le Dréau Philippe wrote:

> Hello :
> My problem : I'd like to ignore the lines beginning with --
> $ diff -I '^--' test1.txt test2.txt
> 1,3c1,3
> < 1when
> < --I want ?
> < #ok nok
> ---
> > 2when
> > --I want
> > #ok
>
> [snip]
> The lines are in the output, why ?

"man diff", line 35:

       -I RE  --ignore-matching-lines=RE
              Ignore changes whose lines all match RE.
                                   ^^^^^^^^^^^^^^^
(the relevant part is underlined).

Not Cygwin-specific.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

---559023410-1297389768-1097855606=:20921
Content-Type: text/plain; charset=us-ascii

--
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/
---559023410-1297389768-1097855606=:20921--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019