Created
November 9, 2021 20:07
-
-
Save rpromyshlennikov/b2e111daef5bc99c99b14c19c5b26797 to your computer and use it in GitHub Desktop.
Batch check of Golang compiler version used to build binaries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for file in $(find -name 'some-*-binary-name-and-version-*3.0.1-*'); do echo "========================================"; echo $file; echo "========================================"; gdb -ex "p 'runtime.buildVersion'" -ex quit $file 2>&1| grep 'str = '; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment