I am trying grep only the numbers from the end of the string until any other char, so from example:
"Version 1.2.34"
Will give me '34'
to variable $minor
and 'Version 1.2.'
to variable $type
.
Here's what I've tried:
minor=$(grep -Eo '[0-9]{1,24}')
but this gives me ALL numbers.