#! /bin/bash a=$1 b=$2 c=$3 d=$4 e=$5 f=$6 g=$7 h=$8 i=$9 j=${10} echo $a echo $b echo $c echo $d echo $e echo $f echo $g echo $h echo $i echo $j #"correlation variance entropy" #var="entropy" #if ((var=="correlation")) #then # echo "it is corr" #fi #if ((var=="entropy")) # echo "it is entropy" #fi EffortResult="this,might,work,or,not" EvalColumn="2" NewMMRE=$(echo $EffortResult | gawk -v EvalColumn=$EvalColumn 'BEGIN{FS=","} {print $EvalColumn}') echo $NewMMRE