On Tue, 10 Jul 2007 10:55:14 -0600, chris bohnert wrote:

> Chris,
> 
> Try this:
> 
>  ps -awx | awk '{print $2}'
> 
> if that prints you a list of pid's you should be good to replace the cut
> pipe with the awk command.  By the way, what version of os X are you
> running..mine doesn't seem to behave as you describe.

Ah... actually use {print $1} (you want the first chunk)... so try this:

ps -awx | grep 'TextEdit' | grep -v 'grep' | awk '{print $1}' | xargs 
-I pid kill -9 pid

(all one line of course...)

Ken Ray
Sons of Thunder Software, Inc.
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to