#!/bin/bash Local=${Local="/srv/bronze/dj/wisp/var/dj/rbst/10xresult7"} Datums=${Datums="a2b/audiology a2b/auto-mpg a2b/breast-cancer a2b/breast-cancer-wisconsin c2d/credit-a c2d/diabetes e2i/ecoli e2i/flag e2i/hayes-roth e2i/heart-c e2i/heart-h e2i/hepatitis e2i/imports-85 e2i/iris j2p/kr-vs-kp j2p/letter j2p/mushroom q2s/segment q2s/splice q2s/soybean t2z/vowel t2z/wine t2z/wdbc t2z/waveform-5000"} #Datums=${Datums="a2b/audiology"} Methods=${Methods="cat disctree3 pkid tbin fayyadIrani"} #Methods=${Methods="cat disctree3"} Measures=${Measures="acc bal npf pd prec"} for datum in $Datums do file=${datum##*/} for method in $Methods do for measure in $Measures do if [ $measure == acc ]; then x="13" elif [ $measure == bal ]; then x="17" elif [ $measure == pd ]; then x="14" elif [ $measure == npf ]; then x="18" else x="16" fi ./getdatag Field=$x ${file}.${method}.csv | sort -n > ${file}.${method}.${measure}.csv done; done; done;