#!/bin/bash if sh-expr '$# < 2' { echo "Usage: $0 compilerlist.txt benchfile.cpp" } else { setglobal compilerlist = $1 setglobal benchfile = $2 setglobal 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 }