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:

Re: grep problems

2004-06-14 Thread Andrew DeFaria
"Yitzchak Scott-Thoennes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Mon, Jun 14, 2004 at 10:29:13AM +0200, J?rg Schaible wrote: > > > I have upgraded to latest release of Cygwin and this has not > > > changed things. I have tried the above on a Windows 98 and > > > Windows XP

Re: grep problems

2004-06-14 Thread Reini Urban
Hannu E K Nevalainen schrieb: From: [EMAIL PROTECTED] Sent: Monday, June 14, 2004 9:47 AM I was having some trouble using grep to look for text in files. From some tests it looks like meta characters cause the problem to show itself : To get more info regarding the use/setup of rxvt+bash: Use

RE: grep problems

2004-06-14 Thread Hannu E K Nevalainen
> From: [EMAIL PROTECTED] > Sent: Monday, June 14, 2004 9:47 AM > All, > > I was having some trouble using grep to look for text in files. > > >From some tests it looks like meta characters cause the problem to show > itself : Well, the "meta characters" has a different meaning for the cygwin/bas

Re: grep problems

2004-06-14 Thread Yitzchak Scott-Thoennes
On Mon, Jun 14, 2004 at 10:29:13AM +0200, J?rg Schaible wrote: > > I have upgraded to latest release of Cygwin and this has not > > changed things. I have tried the above on a Windows 98 and > > Windows XP system as well - same results. > > > > Any ideas how I get around this problem ? > > Learn

RE: grep problems

2004-06-14 Thread Jörg Schaible
Hi Mark, [EMAIL PROTECTED] wrote on Monday, June 14, 2004 9:47 AM: > I was having some trouble using grep to look for text in files. > > From some tests it looks like meta characters cause the problem to > show itself : > > C:\temp>type test.txt > text > > C:\temp>grep test test.txt > text >

grep problems

2004-06-14 Thread Mark . Bevan
All, I was having some trouble using grep to look for text in files. >From some tests it looks like meta characters cause the problem to show itself : C:\temp>type test.txt text C:\temp>grep test test.txt text C:\temp>grep text *.txt test.txt:text C:\temp>grep text \temp\test.txt text C:\tem