From 9e1ca8816dcb17e52064840b305c577f1d89d631 Mon Sep 17 00:00:00 2001 From: Alan Wang Date: Mon, 23 Mar 2020 23:28:15 +0800 Subject: [PATCH] fix typo --- SC2009.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SC2009.md b/SC2009.md index 51818fc..37b79fc 100644 --- a/SC2009.md +++ b/SC2009.md @@ -14,7 +14,7 @@ pgrep -f "$service" > /dev/null ### Rationale: -If you are just after a pid from a running program, then pgrep is a much safer alternative. Especially if you are also looking for a pid belonging to a certain user or group. All of the parameters are in one command and it can eliminate multiple greps, cuts, seds, awks, ect. +If you are just after a pid from a running program, then pgrep is a much safer alternative. Especially if you are also looking for a pid belonging to a certain user or group. All of the parameters are in one command and it can eliminate multiple greps, cuts, seds, awks, etc. If you want a field that's not the pid, consider doing this through `ps` + `pgrep` instead of `ps` + `grep`: