a simple question about grep
    Kent Johnson 
    kent37 at tds.net
       
    Fri Sep  7 10:25:49 EDT 2007
    
    
  
Bill Ricker wrote:
>>   Or, if you only have an old grep, but do have Perl, the following should work:
> 
> The Andy and the "ack" project have built a better grep with perl.
Cool. By default ack ignores plain text files, so you have to tell it to 
include them even when explicitly specifying the file. Here is an ack 
command that solves the OP's problem:
ack --text '^\*(?!INDICATOR)' myfile.txt
Kent
    
    
More information about the gnhlug-discuss
mailing list