Bash: How to remove all blank lines on all files with an extensions : <p><br/>
I'd need to remove all empty lines which are contained in all the files named "pom.xml". I've come up with this:</p>

<pre><code>find . -name 'pom.xml' -exec sed '/^$/d'  {} \;
</code></pre>

<p>But it just prints out the output on the screen, which is by the way correct. I'd need however to change the files with that command. Any help?
Thanks </p>
