I have a large collection of php files written over the years and I need to properly replace all the short open tags into proper explicit open tags.
change \
I had the same problem when I update php version.
Use this:
find . -iname "\*.ph\*" -type f -print0 |xargs -0 sed -i -e 's/ /
This will convert "" to "" to ""
for any kind of file .php or .phtml
Credits: https://coderwall.com/p/cnm0_w/replace-php-short-open-tags-with-full-form-in-all-php-files-using-one-command