Extraction of PID

Peter
2003-07-26T06:58:24Z

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