Scusami ma non è più facile un bel

codice:
 comp_instances=( $(ps faux | grep $DD | grep -v "grep" | awk '{print $2;}') )

?