[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: plus sign appears not to work as expected
From: |
Mike Frysinger |
Subject: |
Re: plus sign appears not to work as expected |
Date: |
Sat, 11 Feb 2012 23:54:12 -0500 |
User-agent: |
KMail/1.13.7 (Linux/3.2.0; KDE/4.6.5; x86_64; ; ) |
On Saturday 11 February 2012 12:50:56 Bill Gradwohl wrote:
> I had hoped to find a help list because this may be my problem, but here
> goes:
>
> grep --color '^[[:alpha:]]*' xxx
> Lists every line including blank lines, highlighting leading alpha strings.
>
> grep --color '^[[:alpha:]][[:alpha:]]*' xxx
> Lists every line starting with an alpha and highlights all leading alphas.
> This is what I wanted, so I tried rewriting the spec as:
>
> grep --color '^[[:alpha:]]+' xxx
> lists nothing.
>
> Is it me or is this a bug?
please post:
- the output of `grep --version`
- the output of `locale`
- an example "xxx" file
-mike
signature.asc
Description: This is a digitally signed message part.
Re: plus sign appears not to work as expected, arnold, 2012/02/12