[lug] grep question

Chip Atkinson chip at pupman.com
Sun Jun 10 17:02:50 MDT 2007


Greetings, 

I'm trying to figure this one out:

$ echo abcdefg | /usr/bin/grep "[A-Z]"
abcdefg

$ echo abcdefg | /usr/bin/grep -E "[A-Z]"
abcdefg


I always thought "[A-Z]" represented the characters A through Z, and not
the characters a through z.

Any ideas?

Thanks in advance.

Chip





More information about the LUG mailing list