I have a file that contains these lines:
war {
baseName = 'myApp'
version = '1.0.2'
}
And a variable like:
variable=b123
I want to edit the file appending $variable value to the version number so result will be:
war {
baseName = 'myApp'
version = '1.0.2_b123'
}
How achieve this goal with a bash script?