3 ms·
pgrep already excludes itself
by nailer 11y ago
pgrep already excludes itself
- SEJeff 11y agoSure but that isn't often nearly as useful as something like: ps -efH | grep foob[a]r Where you can see the arguments and whatnot. Both are good to know. You can use awk's ability to do posix regex and emulate pgrep with: ps -efH | awk '/foob[a]r/{print $1}'