bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep


From: Daniel Jacobowitz
Subject: Re: grep
Date: Wed, 26 Feb 2003 22:17:05 -0500
User-agent: Mutt/1.5.1i

On Wed, Feb 26, 2003 at 08:45:42PM -0600, Greg Tsoris wrote:
> 
> /root/grep-2.4/src/grep '^[A-Z]' /usr/share/dict/words
> 
> outputs a list of capitalized words in the dictionary file.
> 
> /root/grep-2.4.1/src/grep '^[A-Z]'
> 
> outputs all the capitalized 'A' words but the doesn't reject 
> uncapitalized b-z words. This applies to versions up to 2.5.1.
> 
> /root/grep-2.4.1/src/grep '^[[:upper:]]' /usr/share/dict/words
> 
> works correctly.
> 
> This is on Red Hat 8:
> Linux localhost.localdomain 2.4.18-14 #1 Wed Sep 4 12:13:11 EDT 2002 
> i686 athlon i386 GNU/Linux

It's a feature.  Have you got your LANG or LC_ALL set?  Try using
LC_COLLATE=C.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer




reply via email to

[Prev in Thread] Current Thread [Next in Thread]