[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep bug?
From: |
David Walker |
Subject: |
grep bug? |
Date: |
Wed, 14 Jan 2004 21:09:02 -0700 |
The examples for the Dos (Windows) version 2.5.1 of GNU grep show the
pattern in single quotes:
grep -l 'main' *.c
The syntax description doesn't mention quotes.
For me, grep works perfectly if I leave the single quotes out. Presumably
if I had quotes in the file, such as quote-something-quote, it would find
it.
I have a file named test.txt that looks like:
111Line1
222Line2
222Line2
333Line3
222Line2
999Line9
Using this:
grep -e 222 test.txt
gives me what I expect:
222Line2
222Line2
222Line2
grep -e '222' test.txt gives me nothing. Is the help wrong, or is it
something I'm doing? I'm using Windows 2000 SP3.
Thanks.
David Walker
- grep bug?,
David Walker <=