Skip to content

Instantly share code, notes, and snippets.

@Raztor0
Created September 7, 2016 16:15
Show Gist options
  • Save Raztor0/117ca7ed70fb276ed84b96cfafeb303c to your computer and use it in GitHub Desktop.
Save Raztor0/117ca7ed70fb276ed84b96cfafeb303c to your computer and use it in GitHub Desktop.
grep -r -v '<\?php' . | grep -r -l --include \*.php -E '<\?' . | xargs -i@ sed -i 's/<?/<?php/g' @
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment