To get some version information, find
pgrep in your
PATH and run the command
what. I get:
% what /usr/bin/pgrep
Note that the program name is
pgrep are hard links to the same binary on my system (OS X).
Explanation (from the manual):
what -- show what versions of object modules were used to construct a file
what reads each file name and searches for sequences of the form "@(#)",
as inserted by the source code control system. It prints the remainder of the
string following this marker, up to a null character, newline, double quote,
or "> character."
pgrep does not accept the
-V flag on my system (OS X), so looking at version strings is the only option.