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

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

Re: Whats wrong with 'sets in grep'


From: Ralf Wildenhues
Subject: Re: Whats wrong with 'sets in grep'
Date: Wed, 20 Dec 2006 01:08:13 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

* SPS Khokhar wrote on Tue, Dec 19, 2006 at 08:37:43AM CET:
> [simrat > simrat]$ ls | grep ^[A-Z]*$
[...]
> [simrat > simrat]$ ls | grep ^[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*$

Try
  ls | LC_ALL=C grep '^[A-Z]*$'

and read up on locale and LC_COLLATE.

Cheers,
Ralf




reply via email to

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