[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: patterns
From: |
Stepan Kasal |
Subject: |
Re: patterns |
Date: |
Tue, 16 Jul 2002 06:20:29 +0000 (UTC) |
User-agent: |
slrn/0.9.6.2 (Linux) |
Hello,
On Mon, 15 Jul 2002 16:09:57 -0400, Paul Jarc <address@hidden> wrote:
> Ken Senior <address@hidden> wrote:
>
> awk '/^[a-z]/ {print $0}' < file.txt
>
> > incorrectly returns not only those entries beginning with a lower case
> > letter, but also upper case ones as well.
>
> You're probably using a locale where uppercase and lowercase letters
> are ordered together, like AaBbCc...Zz, so the range a-z includes B-Z.
there are also locales with aAbBcC...zZ, so a-z includes A-Y.
> You can use the "C" locale to use ASCII order. Set LC_ALL=C or
> LC_COLLATE=C in your environment.
Stepan