I have a property s3Path=s3a://myBucket
in a file s3-apps.properties
Currently the path to a S3
is hardcoded in my bash script:
thePath="s3a://myBucket/myApp"
I want to get the property from the file instead and concatenate it with /myApp
So I'm getting path to the file like this:
file="/apps/properties/various/s3-apps.properties"
But how do I get the property and concatenate it to construct a path?
I guess that it should be something like this but it did not work for me:
thePath="s3a://{$file.s3Path}/myApp"
Non of the answers from the "Duplicate"
helped me in understanding an solving my question. But the @cody
answer below was correct and helped.