awk '/^+.*NMInterface/{f=1} f&&/EntityName:/{print} f&&/OverallStatus:/{print} f&&/IfName:/{print;f=0} ' file