#! /bin/bash Learners="cocomost LC" DataSets="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" #Make the temporary files for learner in $Learners do for data in $DataSets do grep $learner nfoldCocomostExperimentSep28.csv | grep $data | gawk -F, '{print $NF}' | sort -n | gawk '{print NR,$1}' > "/tmp/mre_"$learner"_"$data".tmp" done done # This part assumes Learners="cocomost LC" #data=nasa93_center_2 for data in $DataSets do OutFile="mre_"$data".pdf" Input1="/tmp/mre_cocomost_"$data".tmp" Input2="/tmp/mre_LC_"$data".tmp" gnuplot<