All of lore.kernel.org
 help / color / mirror / Atom feed
From: chuck gelm <nc8q@gelm.net>
To: Peter <heisspf@skyinet.net>, linux-newbie@vger.kernel.org
Subject: Re: Extraction of PID
Date: Sat, 26 Jul 2003 10:57:48 +0000	[thread overview]
Message-ID: <3F225EAC.AD9A00BA@gelm.net> (raw)
In-Reply-To: 20030726065829.DD46B1041E@heisspf

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 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

      parent reply	other threads:[~2003-07-26 10:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-26  6:58 Extraction of PID Peter
2003-07-26  8:11 ` John Kelly
2003-07-26  8:22 ` pa3gcu
2003-07-27  5:36   ` Peter
2003-07-26 10:57 ` chuck gelm [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F225EAC.AD9A00BA@gelm.net \
    --to=nc8q@gelm.net \
    --cc=heisspf@skyinet.net \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.