#!/bin/awk -f
BEGIN {in_haps=0;}
/HAPS_BEGIN/{inhaps=1};
(inhaps==0){print;}
/HAPS_END/{inhaps=0};
