# 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; } NR==4 { Mmre = $4 Sd = $6 } NR==5 { Pred30 = $4 } END { print Name "\t" Train "\t" Test "\t" Method "\t" Numbers "\t" Subset "\t" Learn "\t" Pred30 "\t\t" Mmre "\t\t" Sd }