#!/bin/bash for i in $(seq 0 1 35); do for j in $(seq 1 1 30); do res="$(mpirun -node 0-$i -nnp 16 reduce -b 1000)" echo "${i},${res}" done done