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 lines of code in this app.
Ideally im after some regex combined with find grep to run on a unix box.
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 lines of code in this app.
Ideally im after some regex combined with find grep to run on a unix box.
This works for me...
If you need to use in in a sublime-settings file or something like that which doesn't like forward slashes, you might have to add an extra slash for each of them like so...
Hope that helps!
Using notepad++ you can replace easily all documents at the same time, drap and drop that folder of files and press CTRL + R, also you can use Regex
to be executed for each file not completely tested..
remember to work on a temporary file and after the sed operation copy the new file on the original one..