grep for value of keyvaue pair and format

Posted by imerez on Stack Overflow See other posts from Stack Overflow or by imerez
Published on 2010-03-22T16:09:42Z Indexed on 2010/03/22 16:21 UTC
Read the original article Hit count: 421

Filed under:
|
|
|
|

When I do the following

ps -aef|grep "asdf" 

I get a list of processes that are running. Each one of my process has the following text in the output:

-ProcessName=XXXX

I'd like to be able to format the out put so all I get is:

The following processes are running:
Process A
Process B
etc..

© Stack Overflow or respective owner

Related posts about grep

Related posts about awk