Re: Diff and grep problems

2005-08-25 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [Ugh - top-posting. Reformatted] >> 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

Re: Diff and grep problems

2005-08-25 Thread Adrian Marsh
Hi Eric, Thanks for the help. I'd already "man diff" and it doesn't read like it applies only to files, but info tells me more : `-I REGEXP' `--ignore-matching-lines=REGEXP' Ignore changes that just insert or delete lines that match REGEXP. *Note Specified Lines::. However - this

Re: Diff and grep problems

2005-08-25 Thread Eric Blake
-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 ignorel

Diff and grep problems

2005-08-25 Thread Adrian Marsh
I've trying to compare two files using diff from a .bat file : diff -iX scripts/%2.ignorelist "%difffile1%" "%difffile2%" The file is a cisco config file. A wc -l of the file tells me its over 500 lines long. I'm using diff to compare an OLD file to a NEW one. Constantly a line changes value: