I have a string like that:
rthbp-0.0.3-sources.jar
And i want to get a new string called in someway (like string2) with the original string with just the version , so - '0.0.3' now rthbp- at the start will remain constant but after version "-" (-sources.jar) may change.
is that possible in bash, just to extract the version info ?
I am doing this - echo ${f:6} but only gives me 0.0.3-sources.jar