#!/bin/bash
awk \
'BEGIN{
	i=0;
	while(getline>0){
		if(match($0, /Capacity/)){
			while(getline>0){
				i++;
				if((i % 7) == 0){
					print $0
					}else{
					printf("%s",$0)
					}
				}
			}
		}
	}
' < "$1"
