#!/bin/bash
#Author Martin Prudek
#Compute the number of next next benchmark
maxBN=0;
for file in `ls ../data/*/*.rdat`; do
	filename=`echo "${file}" | sed 's:.*/::'`;
	. ./parse_name.sh "${filename}";
	if [ -n "${nm[bn]}" ]; then
		if [ ${nm[bn]} -gt ${maxBN} ]; then
			maxBN=${nm[bn]};
		fi
	fi
done

maxBN="`expr "${maxBN}" + 1`";
echo "${maxBN}";
