[kwlug-disc] Grep on Ubuntu 11.04 (aka The Natty Narwhal)

Darcy Casselman dscassel at gmail.com
Sat May 7 01:25:47 EDT 2011


On Sat, May 7, 2011 at 1:16 AM, Darcy Casselman <dscassel at gmail.com> wrote:
> ls -a | grep --color=none -h [A-Z]

Oh, weird.  That doesn't match only upper case characters.  There's a
note in the man page about it, though.  Looks like they tried to do
something strange for internationalization.

To get back the old behaviour, set the LC_ALL environment variable to 'C':

export LC_ALL=C

Darcy.




More information about the kwlug-disc mailing list