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`: