Find and Replace string in all files recursive issue
<p>I try this command to find and replace string in my android project.</p>

<pre><code>find . -name '*.java' -print0 | xargs -0 sed -i "" "s;//\#Logger\.;Logger\.;g"
</code></pre>

<p>//#Logger.  =>   Logger.</p>

<p>It's work but in some files i have unexpected changes. With git diff i get:</p>

<pre><code>-}
\ No newline at end of file
+}
</code></pre>

<p>How to fix it?</p>