![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| search excat string in another string (grep "fails") | bora99 | UNIX for Dummies Questions & Answers | 0 | 06-05-2008 03:41 AM |
| Grep string and next line | karthikn7974 | Shell Programming and Scripting | 7 | 05-23-2008 02:06 AM |
| grep for a search string | raga | UNIX for Dummies Questions & Answers | 11 | 03-12-2008 04:38 AM |
| grep string & a few lines after | ashterix | Shell Programming and Scripting | 3 | 03-03-2008 12:48 AM |
| grep a string in a line using sed | viadisky | UNIX for Dummies Questions & Answers | 4 | 02-06-2007 02:03 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
ps -ef |grep <string>
I'm sure the solution to my problem is a simple one, but I just can't figure this one out.
I'm doing a ps -ef and I want to grep for a string, but I do not want the grep process to appear in the results. Does anyone know what switch I can use to accomplish the above? |
| Forum Sponsor | ||
|
|
|
|||
|
It all depends on what you're looking for. If you're just looking for the command name:
Code:
ps -wwaAco pid,command | awk '$2~P{print $1}' P="stuff"
|
|||
| Google The UNIX and Linux Forums |