How to check the version of an application installed with Homebrew (Mac)? I'd like to check the version of GCC on my macOS, found this command:
$ gcc -dumpversion | cut -f1 -f2 -f3 -d

If I want to check my brew-installed GCC --version (or any other app) what would be the command?
Thank you!
To see which version(s) of a particular utility you have installed using brew, e.g. gcc, use:
brew list --versions gcc