My String is:
model_config_list: {
config: {
name: "123-model",
base_path: "/modelServers/tests-integration/resources/models/123-model",
model_platform: "tensorflow",
model_version_policy: {
all: {}
}
}
I want to extract:
/modelServers/tests-integration/resources/models/123-model
for that I wrote bash script :
config_file=$(<conf.conf)
regex="(?<=base_path:)(.*)(?=,)"
if [[ $config_file =~ $regex ]];then echo ${BASH_REMATCH[1]}; fi
However, I am not getting any output. I am a beginner with Bash scripting.