Something strange happens when you try to replace the string with sed. It works:
find /home/loni/config -type f -exec sed -i 's/some_pattern/replacement/g' {} \;
Therefore, it works when I manually type lines. But in the case below, the replacement does not occur:
find /home/loni/config -type f -exec sed -i 's/${PATTERN}/${REPLACEMENT}/g' {} \;
When I repeat these two variables PATTERN and REPLACEMENT, they have the correct values.
I am trying to replace all occurrences of a template string with a replacement string in all files in my configuration directory.
source share