I\'ve tried top | grep skype
for example but it doesn\'t work. I\'m trying to find a specific process by name.
Tested on MacOSX Mojave. It works a bit different than linux.
top -pid
doesn't expect a comma separated list of pids, it expects only one pid. So I had to changed it a little to work with several pids.
top -pid $(pgrep -d' -pid ' -f Python)
filter all Python process on top. It essentially becomes something like this:
top -pid 123 -pid 836 -pid 654