#!/bin/bash run (){ for((i=1; i<=1000; i++)) do #model2 #./tool -b 28475 -d 0.821 -r $RANDOM | gawk 'BEGIN{FS=",";OFS=",";} {print $(NF-1),$NF;}'; #model4 #./tool -b 4740500 -d 3357.9 -r $RANDOM | gawk 'BEGIN{FS=",";OFS=",";} {printf("%f,%f\n",$(NF-1),$NF);}'; #model5 #./tool -b 1450000 -d 265 -r $RANDOM | gawk 'BEGIN{FS=",";OFS=",";} {print $(NF-1),$NF;}'; done } run > output.csv;