I'm writing a bash script and trying to parse a file to get a software version. The output is :
Version 13.0.R7.0 - Built on Tue Feb 09 18:47:29 EST 2016 I want to be able to pull out 13.0 (I will later cut off the .0) with the regex ^1[0-9]\.0, and pull out the R7 with R[0-9]{1}.
I know how to match them, I just don't know how to put the value that matches the regex into a variable, is such a thing possible?
sedor something similar?