#!/bin/bash

if [ -z "$1" ]; then
	echo "Usage: $0 num_threads [num_threads...]"
	exit 1
fi

for i in $*; do
	sed -e "s|%THREADS%|$i|g" < djwong-readwrite.ffsb > /tmp/blargh.ffsb
	echo "Running with $i threads."
	ffsb /tmp/blargh.ffsb
done
