#!/bin/bash for (( i = 1; i <= 5; i++ )); do # strace -o t$i.out bash t.sh $i & bash t.sh $i > t_$i.out 2>&1 & done wait