I'm getting a "bc: integer expression expected" in this line:
numV=$numVtest
while running the script. How can I solve this error?
firstv=1200 #first velocity value
lastv=5000 #last velocity value
increment=200 #velocity increment
numVtest=100 #use to limit number of velocity panels
#otherwise, use very large value (100)
#================================================
# Compute number of velocity panels
numV='bc -l << -END
( ( $lastv - $firstv ) / $increment ) + 1
END'
if [ $numVtest -lt $numV ] ; then
numV=$numVtest
fi