#!/bin/bash run (){ for((i=1; i<=1000; i++)) do #model2 #./tool -l 5000 -s 0.4 -r $RANDOM | gawk 'BEGIN{FS=",";OFS=",";} NR>1 {print $(NF-1),$NF;}'; #model4 #./tool -l 600000 -s 1500 -r $RANDOM | gawk 'BEGIN{FS=",";OFS=",";} NR>1 {print $(NF-1),$NF;}'; #model5 #./tool -l 250000 -s 200 -r $RANDOM | gawk 'BEGIN{FS=",";OFS=",";} NR>1 {print $(NF-1),$NF;}'; done } run > output.csv;