Skip to content

Instantly share code, notes, and snippets.

@naaman
Created March 13, 2013 22:32
Show Gist options
  • Select an option

  • Save naaman/5157032 to your computer and use it in GitHub Desktop.

Select an option

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