[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] I Think It's a bug
From: |
Andrew J. Schorr |
Subject: |
Re: [bug-gawk] I Think It's a bug |
Date: |
Fri, 12 Apr 2013 08:16:31 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Apr 11, 2013 at 09:12:18PM +0800, Nosea Shawn wrote:
> version GNU Awk 3.1.8
> OS: ubuntu 12.04 LTS
> $ cat data
> 1Asia
> 2asiA
> 3aSIa
> 4ASiA
> 5
> $ awk '/[0-9][a-z]/' data
> 1Asia
> 2asiA
> 3aSIa
> 4ASiA
> $ awk '/[0-9][A-Z]/' data
> 1Asia
> 4ASiA
>
> ====================if it is not, sorry to bother======================
Try using [[:upper:]] instead of [A-Z] and [[:lower:]] instead of [a-z].
Please read the manual for further info on locale issues.
Regards,
Andy