[lug] grep question

Jeffrey Haemer jeffrey.haemer at gmail.com
Sun Jun 10 19:52:47 MDT 2007


export LANG=C

will cure this problem.

(If you want a long explanation, let me know and I'll write one tomorrow.
Right now, I'm, uh, otherwise occupied.)

On 6/10/07, Chip Atkinson <chip at pupman.com> wrote:
>
> Greetings,
>
> I'm trying to figure this one out:
>
> $ echo abcdefg | /usr/bin/grep "[A-Z]"
> abcdefg
>
> $ echo abcdefg | /usr/bin/grep -E "[A-Z]"
> abcdefg
>
>
> I always thought "[A-Z]" represented the characters A through Z, and not
> the characters a through z.
>
> Any ideas?
>
> Thanks in advance.
>
> Chip
>
>
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
>



-- 
Jeffrey Haemer <jeffrey.haemer at gmail.com>
720-837-8908 [cell]
http://goyishekop.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20070610/82583a96/attachment.html>


More information about the LUG mailing list