echo "$param_group[0].p1.val" >> $out_file1; echo "$param_group[0].p2.val" >> $out_file1;