From owner-freebsd-questions Sat Mar 15 14:34:41 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA13101 for questions-outgoing; Sat, 15 Mar 1997 14:34:41 -0800 (PST) Received: from mail.crl.com (mail.crl.com [165.113.1.22]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id OAA13096 for ; Sat, 15 Mar 1997 14:34:39 -0800 (PST) Received: from cyber2.servtech.com by mail.crl.com with SMTP id AA25079 (5.65c/IDA-1.5 for ); Sat, 15 Mar 1997 14:33:17 -0800 Received: from jh2.tor.servtech.com (jh2.tor.servtech.com [204.181.8.196]) by cyber2.servtech.com (8.8.5/8.8.5) with SMTP id RAA02776 for ; Sat, 15 Mar 1997 17:32:03 -0500 (EST) Message-Id: <332B23BB.41C67EA6@servtech.com> Date: Sat, 15 Mar 1997 17:33:31 -0500 From: Jen and Luke X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 2.1.7-RELEASE i386) Mime-Version: 1.0 To: freebsd-questions@freebsd.org Subject: awk Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, We are trying to make a command to kill something based on its name, someone posted the instructions awhile back, but this is as far as we got... ps -ax | grep "string" | grep -v grep We know we need to pipe to awk to print the pid, but aren't sure of how to do it... Oh, and the man page sucks...:) How do we nominate it for the worst man page award? -- Jen, Luke, Rusty , Ruckus , Telly , and 4 cats