#!/bin/bash for i in `seq 5`; do ./pre.sh "[prefix-$i] " ./out.sh & done wait