##
my $cmd =
q#perl -F, -aane 'chomp @F; print join ",\t", @F[ grep(! /^(#
. "$var1|$var2|$var3"
. q!)$/, 0..$#F)] ' !
. " $spectralfile > $diroutput$output ";
warn $cmd;
system( $cmd );
####
perl -F, -lane 'chomp @F; print join ",\t", @F[ grep(! /^(1|10|6)$/, 0..$#F)] ' blah.txt