csh weirdness (HELP!)

Bob Desinger bd at hpopd.HP.COM
Wed Aug 15 01:49:12 AEST 1990


> 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



More information about the Comp.unix.wizards mailing list