bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

egrep -i -c


From: Bogdan Sass
Subject: egrep -i -c
Date: Thu, 10 Mar 2011 15:32:56 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9

I have encountered the following problem when attempting to combine the "case insensitive" and "count matches" option of egrep:

address@hidden:~# egrep -i "^[^a-r]*$" /usr/share/dict/british-english | wc -l
50
address@hidden:~# egrep -i "^[^a-r]*$" /usr/share/dict/british-english  -c
98297
address@hidden:~# egrep -ic "^[^a-r]*$" /usr/share/dict/british-english
98297

The match is done correctly, but when I try to count the matches directly from egrep I get way too many results. Is there anything I am doing wrong here?

    Thank you,

--
Bogdan Sass
CCAI,CCSP,JNCIA-ER,CCIE #22221 (RS)
Information Systems Security Professional
"Curiosity was framed - ignorance killed the cat"


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]