From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Subject: Extraction of PID Date: Sat, 26 Jul 2003 14:58:24 +0800 Sender: linux-newbie-owner@vger.kernel.org Message-ID: <20030726065829.DD46B1041E@heisspf> Mime-Version: 1.0 Return-path: List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux Hi, How do I isolate from a line like 1865 tty2 00:00:18 exmh the first 4 numbers which is the PID. I get it with "ps -a --pid 1111 | grep exmh". Thanks & regards -- Peter - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs