mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2009 (markdown)
@@ -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.
|
||||
|
Reference in New Issue
Block a user