Scripting Blog

A place to learn about PowerShell and share stories of automation

How Can I Remove All the Blank Lines from a Text File?

Hey, Scripting Guy! How can I remove all the blank lines from a text file?-- RE Hey, RE. You know, back in the year 2002, when the Scripting Guys were still just lowercase scripting guys, we began working on the Microsoft Windows 2000 Scripting Guide. In putting together the book we faced enormous resistance from people who thought it was a...

Feedback usabilla icon