RE: grep bork

2004-03-11 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Brian Dessent > Sent: 11 March 2004 11:29 > From the grep manpage: > > > In basic regular expressions the metacharacters ?, +, {, |, > (, and > > ) lose their special meaning; instead use the > backslashed versions > > \?

Re: grep bork

2004-03-11 Thread Brian Dessent
Dave Korn wrote: > Ok, since when has the plus sign been a bash metachar? I'm sure I've never > had to escape it before, but am I remembering wrong? >From the grep manpage: > In basic regular expressions the metacharacters ?, +, {, |, (, and ) > lose their special meaning; instead use the

grep bork

2004-03-11 Thread Dave Korn
Well, either grep or bash: [EMAIL PROTECTED] /davek> echo >test-grep.txt " 123 ; pretend asm comment" [EMAIL PROTECTED] /davek> cat test-grep.txt 123 ; pretend asm comment [EMAIL PROTECTED] /davek> grep "[0-9]+[\t ]*;" test-grep.txt [EMAIL PROTECTED] /davek> grep "[0-9]*[\t ]*;" test-grep.txt 1