#!/bin/bash if (($# < 2)); then echo "Usage: $0 compilerlist.txt benchfile.cpp" else compilerlist=$1 benchfile=$2 g=0 source $compilerlist # for each compiler, compile benchfile and run the benchmark for (( i=0 ; i /dev/null echo "" else echo "compiler not found: $compiler" fi done fi