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