Ten="1 2 3 4 5 6 7 8 9 10" walks() { for i in $Ten; do for j in $Ten; do ./maxfunwalk -maxchanges 100 -maxtries 100 -cost 300000 -attainment 250 -seed $RANDOM done done } nothing() { for i in $Ten; do for j in $Ten; do ./tool > /dev/null done done } time walks #time nothing