a simple question about grep
    Kent Johnson 
    kent37 at tds.net
       
    Thu Sep  6 17:23:54 EDT 2007
    
    
  
Tom Buskey wrote:
> 
> 
> On 9/6/07, *G.O.* <gurhan.ozen at gmail.com <mailto:gurhan.ozen at gmail.com>> 
> wrote:
> 
>     egrep "^\*[^INDICATOR]" filename.txt
That excludes lines beginning with * and any of the characters INDCATOR, 
i.e. *N, *D, etc will all be excluded.
> That didn't work for me, but this did:
> 
>    egrep '^\*[^I][^N][^I][^D][^I][^C][^A][^T][^O][^R]' filename.txt
That will exclude a line that matches INDICATOR at any character, for 
example *aN
perhaps this:
egrep -P "^\*(?!INDICATOR)" filename.txt
Kent
    
    
More information about the gnhlug-discuss
mailing list