{if (count >= 1) count = count + 1 } { if ($2 == "BEPS") { count = 1 print " HeatG DHWG EqpG TotG HeatE CoolE FanE LightE EqpE TotE" print " (MBtu) (kWh)" } } {if (count > 0) { if ($0 ~/AREA LIGHTS/) { le=$3*293 } if ($0 ~/MISC EQUIPMT/) { eqpe=$3*293 eqpg=$4 } if ($0 ~/SPACE HEAT/) { he=$3*293 hg=$4 } if ($0 ~/SPACE COOL/) { ce=$3*293 } if ($0 ~/PUMP & MISC/) { pumpe=$3*293 } if ($0 ~/VENT FANS/) { fane=$3*293 } if ($0 ~/DOMHOT WATER/) { dhwe=$3*293 dhwg=$4 } if ($0 ~/TOTAL/ && NF == 3) { tote=$2*293 totg=$3 } } } {if (count == 38 ) { printf("%80s|%80s|\n %6.1f %6.1f %6.1f %7.1f %6d %7d %6d %7d %7d %7d\n",beptit2,beptit1,hg,dhwg,eqpg,totg,he,ce,fane,le,eqpe,tote) count = 0 } }