I want to print the values from properties file dynamically I am using below code but getting wrong output.testProperty.propertiesedmcws,edmbws,edmwtCodefile=/ThreadDump/testProperty.propertiescount=$(head -1 $file | sed 's/[^,]//g' | wc -c)echo $countfor((i=1;i<=$count;i++))doabc=$(awk -F , '(NR==1){print $($i)}' $file)echo $abcdoneOutput3edmcws,edmbws,edmwtedmcws,edmbws,edmwtedmcws,edmbws,edmwtBut when I hard-code the value I am getting  correct output.Codefile=/ThreadDump/testProperty.propertiescount=$(head -1 $file | sed 's/[^,]//g' | wc -c)echo $countfor((i=1;i<=$count;i++))doabc=$(awk -F , '(NR==1){print $1}' $file)echo $abcdoneOutput3edmcwsedmcwsedmcws
I want to print the value from csv file dynamically
shell script;csv