#! /bin/bash #Make the subsets of coc81 data gawk -f CSVsubset.awk Col="kind" Want="min" data/coc81modeTypeLangType.csv > data/subsets/coc81_kind_min.csv gawk -f CSVsubset.awk Col="lang" Want="ftn" data/coc81modeTypeLangType.csv > data/subsets/coc81_lang_ftn.csv gawk -f CSVsubset.awk Col="mode" Want="e" data/coc81modeTypeLangType.csv > data/subsets/coc81_mode_e.csv gawk -f CSVsubset.awk Col="kind" Want="max" data/coc81modeTypeLangType.csv > data/subsets/coc81_kind_max.csv cp data/coc81modeTypeLangType.csv data/subsets/coc81_all.csv gawk -f CSVsubset.awk Col="mode" Want="org" data/coc81modeTypeLangType.csv > data/subsets/coc81_mode_org.csv gawk -f CSVsubset.awk Col="lang" Want="mol" data/coc81modeTypeLangType.csv > data/subsets/coc81_lang_mol.csv #Convert the subsets of coc81 data to numbers gawk -f convertCSV.awk Method="COC81" Style="precise" data/subsets/coc81_kind_min.csv > data/subsets/coc81_kind_min.csv.converted gawk -f convertCSV.awk Method="COC81" Style="precise" data/subsets/coc81_lang_ftn.csv > data/subsets/coc81_lang_ftn.csv.converted gawk -f convertCSV.awk Method="COC81" Style="precise" data/subsets/coc81_mode_e.csv > data/subsets/coc81_mode_e.csv.converted gawk -f convertCSV.awk Method="COC81" Style="precise" data/subsets/coc81_kind_max.csv > data/subsets/coc81_kind_max.csv.converted gawk -f convertCSV.awk Method="COC81" Style="precise" data/subsets/coc81_all.csv > data/subsets/coc81_all.csv.converted gawk -f convertCSV.awk Method="COC81" Style="precise" data/coc81modeTypeLangType.csv > data/subsets/coc81_mode_org.csv.converted gawk -f convertCSV.awk Method="COC81" Style="precise" data/coc81modeTypeLangType.csv > data/subsets/coc81_lang_mol.csv.converted #Make the subsets of nasa93 data gawk -f CSVsubset.awk Col="projectname" Want="gro" data/nasa93.csv > data/subsets/nasa93_project_gro.csv gawk -f CSVsubset.awk Col="cat2" Want="missionplanning" data/nasa93.csv > data/subsets/nasa93_cat2_missionplanning.csv gawk -f CSVsubset.awk Col="cat2" Want="avionicsmonitoring" data/nasa93.csv > data/subsets/nasa93_cat2_avionicsmonitoring.csv gawk -f CSVsubset.awk Col="mode" Want="semidetached" data/nasa93.csv > data/subsets/nasa93_mode_semidetached.csv gawk -f CSVsubset.awk Col="projectname" Want="sts" data/nasa93.csv > data/subsets/nasa93_project_sts.csv gawk -f CSVsubset.awk Col="forg" Want="g" data/nasa93.csv > data/subsets/nasa93_forg_g.csv gawk -f CSVsubset.awk Col="center" Want="5" data/nasa93.csv > data/subsets/nasa93_center_5.csv gawk -f CSVsubset.awk Col="year" Want="1975" data/nasa93.csv > data/subsets/nasa93_year_1975.csv cp data/nasa93.csv data/subsets/nasa93_all.csv gawk -f CSVsubset.awk Col="year" Want="1980" data/nasa93.csv > data/subsets/nasa93_year_1980.csv gawk -f CSVsubset.awk Col="mode" Want="embedded" data/nasa93.csv > data/subsets/nasa93_mode_embedded.csv gawk -f CSVsubset.awk Col="center" Want="2" data/nasa93.csv > data/subsets/nasa93_center_2.csv #Convert the subsets of nasa93 data to numbers gawk -f convertCSV.awk Method="COC81" Style="precise" data/subsets/nasa93_project_gro.csv > data/subsets/nasa93_project_gro.csv.converted gawk -f convertCSV.awk Method="COC81" Style="precise" data/subsets/nasa93_cat2_missionplanning.csv > data/subsets/nasa93_cat2_missionplanning.csv.converted gawk -f convertCSV.awk Method="COC81" Style="precise" data/subsets/nasa93_cat2_avionicsmonitoring.csv > data/subsets/nasa93_cat2_avionicsmonitoring.csv.converted gawk -f convertCSV.awk Method="COC81" Style="precise" data/subsets/nasa93_mode_semidetached.csv > data/subsets/nasa93_mode_semidetached.csv.converted gawk -f convertCSV.awk Method="COC81" Style="precise" data/subsets/nasa93_project_sts.csv > data/subsets/nasa93_project_sts.csv.converted gawk -f convertCSV.awk Method="COC81" Style="precise" data/subsets/nasa93_forg_g.csv > data/subsets/nasa93_forg_g.csv.converted gawk -f convertCSV.awk Method="COC81" Style="precise" data/subsets/nasa93_center_5.csv > data/subsets/nasa93_center_5.csv.converted gawk -f convertCSV.awk Method="COC81" Style="precise" data/subsets/nasa93_year_1975.csv > data/subsets/nasa93_year_1975.csv.converted gawk -f convertCSV.awk Method="COC81" Style="precise" data/subsets/nasa93_all.csv > data/subsets/nasa93_all.csv.converted gawk -f convertCSV.awk Method="COC81" Style="precise" data/subsets/nasa93_year_1980.csv > data/subsets/nasa93_year_1980.csv.converted gawk -f convertCSV.awk Method="COC81" Style="precise" data/subsets/nasa93_mode_embedded.csv > data/subsets/nasa93_mode_embedded.csv.converted gawk -f convertCSV.awk Method="COC81" Style="precise" data/subsets/nasa93_center_2.csv > data/subsets/nasa93_center_2.csv.converted # try learners on coc81 data ./learners data/subsets/coc81_kind_min.csv ./learners data/subsets/coc81_lang_ftn.csv ./learners data/subsets/coc81_mode_e.csv ./learners data/subsets/coc81_kind_max.csv ./learners data/subsets/coc81_all.csv ./learners data/subsets/coc81_mode_org.csv ./learners data/subsets/coc81_lang_mol.csv # try learners on nasa93 data ./learners data/subsets/nasa93_project_gro.csv ./learners data/subsets/nasa93_cat2_missionplanning.csv ./learners data/subsets/nasa93_cat2_avionicsmonitoring.csv ./learners data/subsets/nasa93_mode_semidetached.csv ./learners data/subsets/nasa93_project_sts.csv ./learners data/subsets/nasa93_forg_g.csv ./learners data/subsets/nasa93_center_5.csv ./learners data/subsets/nasa93_year_1975.csv ./learners data/subsets/nasa93_all.csv ./learners data/subsets/nasa93_year_1980.csv ./learners data/subsets/nasa93_mode_embedded.csv ./learners data/subsets/nasa93_center_2.csv