SIZE=8192 MAX=`expr 32 \* 1024 \* 1024` while [ $SIZE -lt $MAX ]; do SIZE=`expr $SIZE \* 2` echo $SIZE ./memrate -n 1 -m $SIZE done