[PLUG] bash surprise
Michael Rasmussen
mikeraz at patch.com
Fri Feb 13 10:55:02 UTC 2004
On Fri, Feb 13, 2004 at 10:47:43AM -0800, Bill Spears wrote:
> Try this:
> $ echo B | grep [a-z]
>
> Cure seems to be LC_ALL=C.
>
> I thought my system, Fedora1, was plain Jane vanilla. The fact that
> this wasn't set right really surprised me.
um, beg to differ here, but the 'cure' is:
$ echo B | grep -i [a-z]
It's good to keep upper and lower case distinct. Unless you explicitly want
them munged together.
--
Michael Rasmussen aka mikeraz
Be appropriate && Follow your curiosity
http://www.patch.com/ http://meme.patch.com/
Get Fixed: http://www.dampfixie.org
The fortune cookie says:
One reason why George Washington
Is held in such veneration:
He never blamed his problems
On the former Administration.
-- George O. Ludcke
More information about the PLUG
mailing list