Ranker="correlation" if [ $Ranker = "correlation" ] then SortColumn=2 Reverse=1 fi if [ $Ranker = "variance_high" ] then SortColumn=3 Reverse=1 fi if [ $Ranker = "variance_low" ] then SortColumn=3 Reverse=0 fi if [ $Ranker = "entropy_high" ] then SortColumn=4 Reverse=1 fi if [ $Ranker = "entropy_low" ] then SortColumn=4 Reverse=0 fi echo $SortColumn, $Reverse