ps -a --pid 1111 | grep exmh | cut -b 2-5
HTH, Chuck
Peter wrote:
>
> 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 [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs