Redis – Search segment and append value at the end
In a file I want to append a string after the specific segment with key "sys-mgmt-agent". This is the file content: sys-mgmt-agent: networks: edgex-network: aliases: - edgex-sys-mgmt-agent depends_on: - redis volumes: - /proc/uptime:/proc/uptime - /var/log/auth.log:/var/log/auth.log - ${HOST_SECURITY_FILE_PATH}edgex-redis:/tmp/edgex/secrets/edgex-redis:z edge-orchestrator: networks: edgex-network:…