#! /bin/bash #FILENAME,I,LEARNER,SEARCH,HORIZON,RANKER,EVAL,ESTIMATE,ACTUAL,MRE,COST_DRIVERS Data="cocomin_experiment_1-15-07.csv" #Files="coc81_all nasa93_all" Files="coc81_all nasa93_all coc81_kind_min coc81_lang_ftn coc81_mode_e coc81_kind_max coc81_mode_org coc81_lang_mol nasa93_project_gro nasa93_cat2_missionplanning nasa93_cat2_avionicsmonitoring nasa93_mode_semidetached nasa93_project_sts nasa93_forg_g nasa93_center_5 nasa93_year_1975 nasa93_year_1980 nasa93_mode_embedded nasa93_center_2" SearchSet="forward backward both" HorizonSet="0 1 2 4 8 16" RankerSet="native cor_hi cor_lo var_hi var_lo ent_hi ent_lo" EvalSet="mmre sd(mre) pred30 corr" echo "#File,Search,Horizon,Ranker,Eval,MMRE,Pred30,SdMre,AvgCostDrivers" for File in $Files do # First LC strawman echo -n $File",N/A,N/A,N/A,N/A," #grep LC $Data | #gawk -f analyzer.awk grep $File $Data | grep LC | gawk -f analyzer.awk for Search in $SearchSet do for Horizon in $HorizonSet do for Eval in $EvalSet do for Ranker in $RankerSet do combo=$Search","$Horizon","$Ranker","$Eval echo -n $File","$combo"," grep $File $Data | grep $combo | gawk -f analyzer.awk done done done done done