script to merge all results_n.out into a single results.out