#! /bin/bash Data=cocomost_3.log Goals="coc81_all coc81_kind_min coc81_lang_ftn coc81_mode_e coc81_kind_max coc81_mode_org coc81_lang_mol nasa93_all 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" Methods="LC cocotest" # Filename, I, Seed, Learner, Subset, Estimate, Actual, MRE generate() { ( echo | stats Report=0 Prefix="#goal,what" for method in $Methods do for goal in $Goals do grep $goal $Data | grep $method | cut -d, -f 8 | stats Loud=0 Prefix="$goal,$method" done done ) | sort -t, -n +7 > $0.tmp } report() { for method in $Methods do grep $method $0.tmp | cut -d, -f 6,8 | sed 's/,/ /g' | cat -n > ${method}_meanSd.csv grep $method $0.tmp | cut -d, -f 5,7 | sed 's/,/ /g' | cat -n > ${method}_meanMinMax.csv done #set size 0.5,0.33 gnuplot<