summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstatic.vortex@gmx.com <static.vortex@gmx.com>2013-02-13 23:06:11 +0530
committerCraig Small <csmall@enc.com.au>2013-02-18 21:41:31 +1100
commitcff3960c4a5f3eeaaf61769f5af37656a31b9f2f (patch)
tree2b6b1a7a2ec89dc03d4677d4e3d08367b0229b03
parent12ee64c8a3828e9dfd11ad36f3f71cb76040a99c (diff)
downloadprocps-ng-cff3960c4a5f3eeaaf61769f5af37656a31b9f2f.tar.gz
pgrep: Documentation fixes
Minor fixes to the help output and manpage of pgrep.
-rw-r--r--pgrep.110
-rw-r--r--pgrep.c4
2 files changed, 8 insertions, 6 deletions
diff --git a/pgrep.1 b/pgrep.1
index 0cf8717..622cf1c 100644
--- a/pgrep.1
+++ b/pgrep.1
@@ -14,7 +14,7 @@ pgrep, pkill \- look up or signal processes based on name and other attributes
.SH DESCRIPTION
.B pgrep
looks through the currently running processes and lists the process IDs which
-matches the selection criteria to stdout. All the criteria have to match.
+match the selection criteria to stdout. All the criteria have to match.
For example,
.IP
$ pgrep \-u root sshd
@@ -116,12 +116,14 @@ Only match processes whose real user ID is listed. Either the numerical or
symbolical value may be used.
.TP
\fB\-v\fR, \fB\-\-inverse\fR\fR
-Negates the matching. This option usually used in pgrep context. In
-.B pkill
+Negates the matching. This option is usually used in
+.BR pgrep 's
+context. In
+.BR pkill 's
context the short option is disabled to avoid accidental usage of the option.
.TP
\fB\-x\fR, \fB\-\-exact\fR\fR
-Only match processes whose name (or command line if \-f is specified)
+Only match processes whose names (or command line if \-f is specified)
.B exactly
match the
.IR pattern .
diff --git a/pgrep.c b/pgrep.c
index ce5a58b..f08d89f 100644
--- a/pgrep.c
+++ b/pgrep.c
@@ -110,12 +110,12 @@ static int __attribute__ ((__noreturn__)) usage(int opt)
" -G, --group <gid,...> match real group IDs\n"
" -n, --newest select most recently started\n"
" -o, --oldest select least recently started\n"
- " -P, --parent <ppid,...> match only childs of given parent\n"
+ " -P, --parent <ppid,...> match only child processes of the given parent\n"
" -s, --session <sid,...> match session IDs\n"
" -t, --terminal <tty,...> match by controlling terminal\n"
" -u, --euid <id,...> match by effective IDs\n"
" -U, --uid <id,...> match by real IDs\n"
- " -x, --exact match exectly with command name\n"
+ " -x, --exact match exactly with the command name\n"
" -F, --pidfile <file> read PIDs from file\n"
" -L, --logpidfile fail if PID file is not locked\n"), fp);
fputs(USAGE_SEPARATOR, fp);