[kwlug-disc] Grep on Ubuntu 11.04 (aka The Natty Narwhal)

John Johnson jvj at golden.net
Sat May 7 13:53:51 EDT 2011


Re: My original question "what happened to my old friend grep" can 
anybody tell me where he is gone?

On 2011-05-07 01:25, Darcy Casselman wrote:
> Looks like they tried to do something strange for internationalization.
> To get back the old behaviour, set the LC_ALL environment variable to 'C'
>
> export LC_ALL=C
With the above:

$ ls | grep [A-Z]

Works as expected, i.e. only matches are returned.
With colour. Add --colour=none to remove the colour.

Tx. JohnJ



-----

Checked by AVG - www.avg.com
Version: 10.0.1325 / Virus Database: 1500/3621 - Release Date: 05/06/11





More information about the kwlug-disc mailing list