All=`./File` cd $HOME/work/mine/trunk/doc/06/markland/ data() { cat dataNoBlanks3.csv \ | gawk -F, 'BEGIN {FS=OFS=","} {print $1,$5,$6,$7,$10,$11,$13,$14,$15,$16,$17,$18,$19,$20,$22,$23,$24}' \ | gawk -F, ' NR==1 { OFS=FS="," print $0,"prime","profile","orbit" ; next } {Prime=Profile=Orbit="?"} $1 == "X1" || $1 == "X12" || $1 == "X2" || $1 == "X4" || $1=="X5" || $1=="X8" {Prime="p1" } $1 == "X10" || $1 == "X11" || $1 == "X3" || $1 == "X6" {Prime="p2"} $1 == "X7" {Prime="p3"} $1 == "X9" {Prime="p4"} $1 == "X10" || $1 == "X5" {Profile="es"} $1 == "X7" || $1 == "X9" {Profile="hs"} $1 == "X11" || $1 == "X6" || $1 == "X8" {Profile="op"} $1 == "X1" || $1 == "X2" || $1 == "X3" {Profile="ss"} $1 == "X12" || $1 == "X4" {Profile="su"} $1 == "X1" || $1 == "X4" || $1=="X5" || $1 == "X7" || $1 == "X10" || $1=="X12" {Orbit="eo"} $1 == "X2" || $1 == "X3" || $1 == "X8" {Orbit="xf"} $1 == "X6" || $1 == "X11" {Orbit="go"} $1 == "X9" {Orbit="gs"} {print $0,Prime,Profile,Orbit } ' } data > 16.csv java -jar $HOME/our/doc/05/jairus/dreamhost/data/weka.jar | tee 16.log