#!/bin/sh for c in "$@"; do echo $c start=$(grep "start program" $c | sed -e 's/.*start program = "//' -e 's/".*//') echo $start ( $start & ) done