pgrep: add -c option for counting number of matched proceesses
A patch from Debian. Bug-Debian: http://bugs.debian.org/375791 Backported-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
4
pgrep.1
4
pgrep.1
@@ -8,7 +8,7 @@ pgrep, pkill \- look up or signal processes based on name and other attributes
|
||||
|
||||
.SH SYNOPSIS
|
||||
.na
|
||||
\fBpgrep\fR [\fB\-flvx\fR] [\fB\-d\ \fIdelimiter\fR] [\fB\-n\fR|\fB\-o\fR] \
|
||||
\fBpgrep\fR [\fB\-cflvx\fR] [\fB\-d\ \fIdelimiter\fR] [\fB\-n\fR|\fB\-o\fR] \
|
||||
[\fB\-P\ \fIppid\fR,...] [\fB\-g\ \fIpgrp\fR,...] [\fB\-s\ \fIsid\fR,...] \
|
||||
[\fB\-u\ \fIeuid\fR,...] [\fB\-U\ \fIuid\fR,...] [\fB\-G\ \fIgid\fR,...] \
|
||||
[\fB\-t\ \fIterm\fR,...] [\fIpattern\fR]
|
||||
@@ -41,6 +41,8 @@ will list the processes owned by \fBroot\fP OR \fBdaemon\fP.
|
||||
to each process instead of listing them on stdout.
|
||||
|
||||
.SH OPTIONS
|
||||
\-c
|
||||
Suppress normal output; instead print a count of matching processes.
|
||||
.TP
|
||||
\fB\-d \fIdelimiter\fP
|
||||
Sets the string used to delimit each process ID in the output (by
|
||||
|
Reference in New Issue
Block a user