#!/bin/bash echo "Iterative" echo " N: ${1}" echo "---------" /usr/bin/time --output=fib_iter.log -f %e ./fib_iter $1 &> /dev/null; echo "fib_iter : `cat fib_iter.log`" rm fib_iter.log /usr/bin/time --output=fib_iter-as.log -f %e ./fib_iter-as $1 &> /dev/null; echo "fib_iter-as : `cat fib_iter-as.log`" rm fib_iter-as.log /usr/bin/time --output=fib_iter-java.log -f %e ./fib_iter-java $1 &> /dev/null; echo "fib_iter-java : `cat fib_iter-java.log`" rm fib_iter-java.log