lkml.org 
[lkml]   [1996]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Gack, this shouldn't happen under a stable OS I think
Date
In <dy8f2e.gp4@bigred.inka.de> Olaf Titz <olaf@bigred.inka.de> writes:

>If you really need grep on a ps listing, e.g. to find processes of a
>certain program, the standard way to do this is grepping out the grep:
>ps -aux | grep "httpd" | grep -v grep

A more elegant way is to use something like

ps -aux | grep [h]ttpd

This saves starting an extra process.

--
Artificial Intelligence stands no chance against Natural Stupidity.
GAT d- -p+(--) c++++ l++ u++ t- m--- W--- !v
b+++ e* s-/+ n-(?) h++ f+g+ w+++ y*


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.145 / U:3.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site