[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
plus sign appears not to work as expected
From: |
Bill Gradwohl |
Subject: |
plus sign appears not to work as expected |
Date: |
Sat, 11 Feb 2012 11:50:56 -0600 |
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?
--
Bill Gradwohl
- plus sign appears not to work as expected,
Bill Gradwohl <=
Re: plus sign appears not to work as expected, arnold, 2012/02/12