Re: problem with diff -I 'regexp'

2004-10-15 Thread Igor Pechtchanski
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

problem with diff -I 'regexp'

2004-10-15 Thread Le Dréau Philippe
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 5,6c5,6 < 2 < 3 --- > 4 > 5 8c8 < test 2 --- > test x The lines are in the output, why ? I obtain the same thig with the follo