#! /bin/bash SearchSet="forward backward both" RankerSet="native cor_hi cor_lo var_hi var_lo ent_hi ent_lo" EvalSet="mmre sd(mre) pred30 corr" count=1 for search in $SearchSet do for ranker in $RankerSet do for eval in $EvalSet do grep "fastCocomin,"$search",16,"$ranker","$eval cocomin_experiment_horizon16.csv > "separated_data/"$count".csv" cat "lc.tmp" >> "separated_data/"$count".csv" ((count++)) done done done