[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: |
Bill Gradwohl |
Subject: |
Re: plus sign appears not to work as expected |
Date: |
Sun, 12 Feb 2012 07:39:48 -0600 |
On Sat, Feb 11, 2012 at 10:54 PM, Mike Frysinger <address@hidden> wrote:
> please post:
> - the output of `grep --version`
> - the output of `locale`
> - an example "xxx" file
> -mike
>
I was given the solution - escape the + with a \ character.
But here is what you asked for:
grep (GNU grep) 2.9
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE=C
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
func1(){
blah blah
}
func2(){
blah blah
}
func3(){
blah blah
}
func4(){
blah blah
}
Any bash script file will do, that has function names starting in column 1.
I have a large file full of functions and wanted to get a listing of the
function names.
The actual grep (that now works) is :
grep --color '^[[:alpha:]]\+()' yccfunctions
Thank You
--
Bill Gradwohl
Re: plus sign appears not to work as expected, arnold, 2012/02/12