# Example use: # gawk -f subsetDisplay.awk Name=$5 Train="?" Test=$TestSets Method=$2 Numbers=$3 Learn=$6 /tmp/effort/stats.tmp BEGIN { FS = ","; # Initialize the field separator. Name = "?"; Train = -1; Test = -1; Method = "?" Numbers = "precise"; Subset = "?"; Learn = "LC"; Pred30 = -1; Mmre = -1; Sd = -1; Columns = "default"; AvgCorr = -1; AttrDev = "Variance"; AttrEntropy = "Entropy"; } NR==1 { Mmre = $1; Sd = $2; Pred30 = $3; AvgCorr = $4; } END { #print AvgCorr "\t" Name "\t" Train "\t" Test "\t" Method "\t" Numbers "\t" Subset "\t" Learn "\t" Pred30 "\t\t" Mmre "\t\t" Sd "\t\t" Columns #print Columns,AvgCorr,"variance","entropy",Mmre,Sd,Pred30 print Columns,AvgCorr,AttrDev,AttrEntropy }