/if \(!defined\('__LPK_IN__'\)\)/ { inblk=1; print NR": "$0; next } inblk { print NR": "$0 if ($0 ~ /^}/) { inblk=0 } }