Extract parameter lines and group them