On OSX, I am trying to replace all occurrences of 2.7.10 in certain path in the following manner:
find . -type f -path '*/*/dev/composer.json' \
-exec sed -i -e 's/2.7.10/dev-supported/7.x-2.7.10/g' {} \;`
but the above command fails with error bad flag in substitute command: '.'
so I tried escaping the dots as answers for similar questions suggest and the command looks like
find . -type f -path '*/*/dev/composer.json' \
-exec sed -i -e 's/2\.7\.10/dev-supported/7\.x-2\.7\.10/g' {} \;
But that fails with bad flag in substitute command: '\'
error.