Created
May 20, 2011 20:19
-
-
Save seansawyer/983715 to your computer and use it in GitHub Desktop.
Extract an OTP application version number from an Erlang .app file
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
awk "/\\{vsn, \"([0-9]+)\"\\}/" src/synchole.app.src | sed -En "s/[^[:digit:]]*([[:digit:]]+)[^[:digit:]]*/\1/p" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment