SIZE=128 MAX=`expr 512 \* 1024` while [ $SIZE -lt $MAX ]; do SIZE=`expr $SIZE \* 2` echo $SIZE ./memrate -n 8 -m $SIZE -g done