> to kill every instance of a.out I get > `ps | grep a.out | awk '{printf("%d ",$1);}'`: Ambiguous. Can you work around this by changing the awk program to generate the kill commands, then piping the awk output to the shell? As in: ps | grep a.out | awk '{print "kill", $1}' | sh -- bd