#! /bin/bash #Arguments Filename=$1 Path=$2 Learner=$3 TestFile=$4 TrainFile=$5 TargetEMs=$6 LogFile=$7 EMstart=1 #EMend=15 #TestFieldCount=$(gawk 'BEGIN{FS=","}NR==1{print NF}' $TestFile) TrainFieldCount=$(gawk 'BEGIN{FS=","}NR==1{print NF}' $TrainFile) ((EMend=TrainFieldCount-2)) for ((i=$EMstart;i<=$EMend;i++)) do targetEM=$TargetEMs$i- ./effort $Filename $Path $Learner $TestFile $TrainFile $targetEM $LogFile".ranking."$i done