What's next? verify your email address for reply notifications!
pgrep and pkill arent's distributed natively with OSX. You can add them by installing proctors via fink (or maybe brew?). fp as written will work for OSX, but needs some subtle adjust for Solaris or Linux.
Perhaps this package isn't installed by default, but it certainly comes from Apple:
% pkgutil --files com.apple.pkg.BSD | grep pgrepusr/bin/pgrepusr/bin/zipgrepusr/share/man/man1/pgrep.1usr/share/man/man1/zipgrep.1usr/share/zsh/5.0.2/functions/_pgrep
You're absolutely correct! When did they add this one? proctools has been on my build list since 10.4.
You could probably use pgrep, e.g.
/usr/bin/pgrep -fi pattern
as a simpler implementation of your fp() function, although I might be missing a subtlety of your command pipeline.
Comments
pgrep and pkill arent's distributed natively with OSX. You can add them by installing proctors via fink (or maybe brew?). fp as written will work for OSX, but needs some subtle adjust for Solaris or Linux.
Perhaps this package isn't installed by default, but it certainly comes from Apple:
You're absolutely correct! When did they add this one? proctools has been on my build list since 10.4.
You could probably use pgrep, e.g.
/usr/bin/pgrep -fi pattern
as a simpler implementation of your fp() function, although I might be missing a subtlety of your command pipeline.