Hello,
I am having problem calling a subroutine with arguments, can any help? is the approach I am using correct?
main()
{
# This is just a subset of the code
#$b & $lnum is already define in this section of the code
checkboard $b $lnum
}
checkboards()
{
ln=$lnum
mycounter=1
if [ "$b" > 1 ] ; then
while [ "$b" < "$mycounter" ] ; do
sed -n $ln'p' TSimWager.txt | printf ' %s\\n' $c
let ln=ln+1
let mycounter=mycounter+1
#echo "\nWager Number ${ln} is:" $c
done
fi
}