#!/bin/bash i=10 while [ $i -le 1000000 ]; do for j in $(seq 1 1 30); do for k in $(seq 0 1 35); do res="$(mpirun -node 0-$k -nnp 16 reduce -b $i)" echo "${i},${k},${res}" done done let i*=10 done