#!/bin/ksh nawk ' /^$/ { if (count==1) print count++ next } // { print count=0; } '