is there a way of usinf greo to find 3 or 4 blank lines?
Mark Willson
cdr.nil at gmail.com
Tue Sep 8 12:17:10 UTC 2009
Gary Kline wrote:
> On Mon, Sep 07, 2009 at 08:06:51AM +0100, Mark Willson wrote:
>> The following version should do what you want:
>>
>> BEGIN {
>> ncnt = 0
>> prev = "BOF"
>> }
>> /^ *$/ {
>> ncnt++;
>> if (ncnt > 3) {
>> print "Emphasis at " NR ": " prev;
>> prev = "-multiple-"
>> ncnt = 0;
>> }
>> next;
>> }
>> {ncnt = 0; prev = $0}
>>
>> -mark
>
>
> It does! outstanding....
>
> thanks again,
>
> gary
>
Gary,
No problem. Glad I could help.
-mark
More information about the freebsd-questions
mailing list