Skip to content

Instantly share code, notes, and snippets.

@rpromyshlennikov
Created November 9, 2021 20:07
Show Gist options
  • Save rpromyshlennikov/b2e111daef5bc99c99b14c19c5b26797 to your computer and use it in GitHub Desktop.
Save rpromyshlennikov/b2e111daef5bc99c99b14c19c5b26797 to your computer and use it in GitHub Desktop.
Batch check of Golang compiler version used to build binaries
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