Last active
November 30, 2016 05:00
-
-
Save rtrouton/49101bfe86a6833fb38a to your computer and use it in GitHub Desktop.
Reading Apple JDK version number
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
java -version 2>&1 | awk 'NR==1{ gsub(/"/,""); print $3 }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment