Tigger996
asked on
How to get this to evaluate right
COUNTER=1
while [ $COUNTER -lt 8 ]; do
doorstatus=`echo $sensedvalues | cut -d ',' -f $COUNTER`;
let COUNTER+=1
done
How can I get $COUNTER to work. I want to get the value of each column from the cut. But $COUNTER doesn't break down to a number. so the line errors.
Thanks
while [ $COUNTER -lt 8 ]; do
doorstatus=`echo $sensedvalues | cut -d ',' -f $COUNTER`;
let COUNTER+=1
done
How can I get $COUNTER to work. I want to get the value of each column from the cut. But $COUNTER doesn't break down to a number. so the line errors.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER