macOS / binaries /

pgrep

/usr/bin/pgrep
Find or signal processes by name

The pgrep command searches the process table on the running system and prints the process IDs of all processes that match the criteria given on the command line.

source: man