SORTOPT="-k2 -k3" BTREEOPT= for NUMERIC in n y do DATACAT="cat data/btree.data" for STRATEGY in 0 1 2 do [ -f temp/BTREE ] && rm -rf temp/BTREE echo "$DATACAT | ./tbtreetest -c 10 -f temp/BTREE -b -S $STRATEGY $BTREEOPT" $DATACAT | ./tbtreetest -c 10 -f temp/BTREE -b -S $STRATEGY $BTREEOPT || exit 1 ./tbtreetest -c 10 -f temp/BTREE -S $STRATEGY $BTREEOPT -L || exit 1 ./tbtreetest -c 10 -f temp/BTREE -S $STRATEGY $BTREEOPT -z || exit 1 ./tbtreetest -c 10 -f temp/BTREE -S $STRATEGY $BTREEOPT -s 542 || exit 1 ./tbtreetest -c 10 -f temp/BTREE -S $STRATEGY $BTREEOPT -d 542 || exit 1 ./tbtreetest -c 10 -f temp/BTREE -S $STRATEGY $BTREEOPT -s 542 || exit 1 DATACAT="sort $SORTOPT data/btree.data" done SORTOPT="-k2n -k3" BTREEOPT="-k" done