I\'m trying to write a simple Bash script. I have a simple \"template\" variable:
template = \"my*appserver\"
I then have a function (
Yeah, either 'sed' as the others have said, or start with your template in 2 separate variables and construct on the fly. e.g.
templateprefix="my" templatesuffix="appserver" server=get_env template=${templateprefix}${server}${templatesuffix}