Does anybody have any idea why this works:
IFS=' '
exec 0< "db/s.d"
while read line
do
set $line
if (($3>0)) && ((${15}<16))
then
And this doesn't?
exec 0< "s.p"
while read line
do
set $line
((++wkcnt))
if (($1>0)) [>0: arithmetic syntax error]
then
The line is getting read correctly as shown if I do a print $1 after the
set.
Actually, since the line in the second case only holds one field,
it should be possible to get away without doing a set, but I was trying
to match the other code.
The first few lines of s.p look like
16.1299990
16.7199990
16.9800000
16.0000000
16.9900000
--
Robert B. Peirce, Venetia, PA 724-941-6883
bob AT peirce-family.com [Mac]
rbp AT cooksonpeirce.com [Office]