I am looking for a way to determine the installed path of a Homebrew formula that includes the version number.
Currently I am aware of the following command,
brew --cellar pig
which will return,
/usr/local/Cellar/pig
However, the actual install path is,
/usr/local/Cellar/pig/0.15.0
which changes when newer/older versions are installed.
Is there any way to obtain this information using a brew command or the command line?