Skip to content

Instantly share code, notes, and snippets.

@naaman
Created March 13, 2013 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naaman/5157032 to your computer and use it in GitHub Desktop.
Save naaman/5157032 to your computer and use it in GitHub Desktop.
java -version
java -version 2>&1 | head -1 | sed "s/[^0-9\.\_\-]*//g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment