BEGIN { FS = "," print "@relation earn.19981022" print print "@attribute weight_vs real" print "@attribute weight_mln real" print "@attribute weight_cts real" print "@attribute weight_SEMICOLON real" print "@attribute weight_AMPERSAND real" print "@attribute weight_000 real" print "@attribute weight_loss real" print "@attribute weight_APOSTROPHE real" print "@attribute weight_QUOTATION_MARK real" print "@attribute weight_3 real" print "@attribute weight_profit real" print "@attribute weight_dlrs real" print "@attribute weight_1 real" print "@attribute weight_pct real" print "@attribute weight_is real" print "@attribute weight_s real" print "@attribute weight_that real" print "@attribute weight_net real" print "@attribute weight_lt real" print "@attribute weight_at real" print "@attribute earnings {Y,N}" print print "@data" } $2 == dataset { for (i = 5; i < 25; i++) printf "%s,", $i printf "%s\n", $4 }