In multiple files, there are format("d-m-Y H:i") at multiple places. There I want to replace "d-m-Y H:i" with DATE_FORMAT.'H:i' so the final string of the file should be format(DATE_FORMAT.'H:i') . Here, DATE_FORMAT is a global constant.
Tried with the following code
find . -type f -name '*.php' -exec sed -i "" s/\"d-m-Y H:i\"/DATE_FORMAT.'H:i'/g {} +
but getting error
sed: 1: "s/"d-m-Y": unterminated substitute pattern