SyntaxFix
Write A Post
Hire A Developer
Questions
This way works for me.
# java -version 2>&1|awk '/version/ {gsub("\"","") ; print $NF}' 1.8.0_171