#! /bin/bash #FILENAME,I,LEARNER,SEARCH,HORIZON,RANKER,EVAL,ESTIMATE,ACTUAL,MRE,COST_DRIVERS Data="../results.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" NumSet="2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20" KnowSet=".30 .35 .40 .45 .50 .55 .60 .65 .70 .75 .80 .85 .90" WeightSet="0 1" echo "#File,UseWeight,ExpertNum,ExpertKnow,MMRE,Pred30,SdMre" for File in $Files do # First Cocomin strawman combo=",N/A,exp_num:1,exp_know:1," echo -n $File$combo grep $File $Data | grep $combo | gawk -f analyzer.awk for iNum in $NumSet do for iKnow in $KnowSet do for iWeight in $WeightSet do Num="exp_num:"$iNum Know="exp_know:0"$iKnow Weight="use_weight:"$iWeight combo=$Weight","$Num","$Know echo -n $File","$combo"," grep $File $Data | grep $combo | gawk -f analyzer.awk done done done done