So I have a space/new line after a closing ?> (php tag) that is breaking my application.
?>
How can I find it easily I have 1000 of files and 100000 lin
use perl;
perl -0777 -i -pe 's/\s*$//s' *.php
s/\s*$//s - treat all lines as a single line and substitute any space at the end to nothing