I have a file that has the format nome1-nome2-0.0.0.0.war
, and through the shell I wanted to get the version (0.0.0.0) and save it in a variable and then use it to create a directory .
Note: Versions change, but the names and extension are the same. Thank you!