Forked from ma2thieu/replace_php_short_tags.sh
Last active
February 24, 2023 15:53
-
-
Save adamculp/f85d1200e1b557cfc15eec40328f7136 to your computer and use it in GitHub Desktop.
replace php short tags (<?) with long one (<?php)
This code replace <?=LANGUAGE_ID;?>
to <?php=LANGUAGE_ID;?>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With
find . -iname "*.php" -print0 | xargs -0 -I{} sed -i -r 's/(<\?)([^a-zA-Z=]|$)/\1php\2/g' '{}'
you replace also the
<?\n