Created
March 1, 2013 21:23
-
-
Save mtheoryx/5067892 to your computer and use it in GitHub Desktop.
Find out the major version number of your current tomcat install.
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
echo version=`$CATALINA_HOME/bin/version.sh | grep version | awk '{split($4,a,"/");print a[2]}' | awk '{split($1,a,".");print a[1]}'` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment