Remove white lines in file through PowerShell

This morning I found myself in the need of removing all white lines in a file of more than 12.000 lines.
Since it’s a white line, you can’t use find&replace in the GUI of notepad… you’ll need something to replace and a white line isn’t something; it’s nothing.
So here’s the PowerShell solution 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *