From 79213ca46c2b8bb6d1692b8ca17136340cb63f25 Mon Sep 17 00:00:00 2001 From: koalaman Date: Sat, 26 Jul 2014 12:59:01 -0700 Subject: [PATCH] Updated SC2009 (markdown) --- SC2009.md | 1 + 1 file changed, 1 insertion(+) diff --git a/SC2009.md b/SC2009.md index bebe76d..be0b5cb 100644 --- a/SC2009.md +++ b/SC2009.md @@ -19,6 +19,7 @@ What if you have the pid and you are looking for the matching program name? pid=123; ps ax | grep "$pid" What if you want a range of the ps field, like from the 16th space to the end of the line? + ps ax | grep "$pid" | cut -d" " -f16- Both are valid cases where SC2009 is not valid.