[Beowulf] regex expert needed

Reuti reuti at staff.uni-marburg.de
Tue Jun 14 13:00:32 PDT 2011


Am 14.06.2011 um 21:53 schrieb Michael Di Domenico:

> apparently
> 
> awk '/pattern1/,/pattern2/' does what i need

Yep, or similar with sed and the same address type.

-- Reuti


> thanks
> 
> On Tue, Jun 14, 2011 at 3:48 PM, Michael Di Domenico
> <mdidomenico4 at gmail.com> wrote:
>> I need to search for a keyword at the beginning of a line and then
>> display each line up to the next blank line.  is this grep'able?
>> 
>> ala
>> 
>> match:
>>   text
>>   text
>>   text
>> <blank line>
>>  not needed text
>>  not needed text
>> 
> _______________________________________________
> Beowulf mailing list, Beowulf at beowulf.org sponsored by Penguin Computing
> To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf
> 




More information about the Beowulf mailing list