I am getting a variable value from properties and I am able to access in sh file. but I am unable to append another value to that variable.
Kindly suggest.
$ echo "Build ID from properties:"$BUILD_ID
Build ID from properties: abcd_v6_c1
$ echo " num----------------" build_${BUILD_ID}.zip
.zip---------------- build_abcd_v6_c1
Kindly suggest how to append .zip value.
Let's say we have a variablevar1=value
.
If I want to add some text to the beginning of the variable I can do:
var1="some text${var1}"
If I want to add some text to the end, it will be:
var1="${var1}some text"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With