3 ms·
pgrep is also useful if you're not trying to kill. They're both from Solaris, and if you have one, you have the other. pgrep | xargs can also be very useful on
by jsmthrowaway 9y ago
pgrep is also useful if you're not trying to kill. They're both from Solaris, and if you have one, you have the other. pgrep | xargs can also be very useful on occasion, depending on what you're doing (mainly debugging).
- vidoc 9y ago> xargs can also be very useful on occasion yes, and xargs has a particularly useful argument -P that allows to do stuff in parallel and probably deserves more love :P