I have a YAML file, schema.yml, with some values like:
{{CODE}}-project
{{CODE}}-project-start
If I use
REP="s/{{CODE}}-project/123-project"
cat schema.yml | sed "$REP"
it will replace both {{CODE}}-project and {{CODE}}-project-start.
How can I replace only {{CODE}}-project occurrences but not {{CODE}}-project-start occurrences?
REP="s/{{CODE}}-project$/123-project/"\<and\>, but this will match before-so it won't solve this problem.