This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: problem with diff -I 'regexp'
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Le Dréau Philippe <pledreau at prosodie dot com>
- Cc: cygwin at cygwin dot com
- Date: Fri, 15 Oct 2004 11:53:26 -0400 (EDT)
- Subject: Re: problem with diff -I 'regexp'
- References: <A9C4AED47120D6119AFA00D0B7C84483028BED2D@Exchrouen.prosodie>
- Reply-to: cygwin at cygwin dot com
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@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.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
--
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/