/^\[/ { section = $0; next } NF { print section, $0 }