Edit: Ok, it helped when I remembered to use double square brackets, now I'm down to one odd problem.
Grep is usually case sensitive unless you specify -i. So why does this happen?
As for the setting: RHEL 64-bit, bash 2.00.15, and GNU grep 2.5.1 .
Doesn't happen on my FreeBSD/tcsh/same version of grep box.
edit again:
[[:lower:]] and [[:upper:]] work as expected. I suspect it's an artifact of the LANG envvar, which is no_NO. It's still weird.
Grep is usually case sensitive unless you specify -i. So why does this happen?
Code:
[dnebdal@mix ~]$ ls|egrep -x "[a-z]{1,5}"
C
Mail
mbox
NET
proj
Sent
tid
tom
Trash
WEB
[dnebdal@mix ~]$ ls|egrep -x "[A-Z]{1,5}"
C
Mail
mbox
NET
proj
Sent
tid
tom
Trash
WEB
[dnebdal@mix ~]$
As for the setting: RHEL 64-bit, bash 2.00.15, and GNU grep 2.5.1 .
Doesn't happen on my FreeBSD/tcsh/same version of grep box.
edit again:
[[:lower:]] and [[:upper:]] work as expected. I suspect it's an artifact of the LANG envvar, which is no_NO. It's still weird.