I apologise for potentially stupid question. I'm working through Ellie
Quigley's "LINUX shells by example" and just encountered a problem which I
can't resolve on my own.
When I type
$ grep [A-Z]
and then enter letters from the console, the command seems to be unable to
distinguish between upper and lower cases (I checked in .bash_profile,
there's no alias for "grep -i" there), like this:
aa <--- my input
aa <--- grep's output
which means that the damn thing understands the difference between a letter
and a digit but refuses to distinguish between upper and lower cases.
There is a workaround to use [:upper:] and [:lower:] instead of [A-Z] amd
[a-z] but it's not good enough because all scripts using grep with regular
expressions will fail.
WHAT SHOULD I DO?!!
I'm running Mandrake 7.2, grep's version 2.4.2 (I think).
PLEASE HELP ME SOLVE THIS PUZZLE