Split a List and Remove Empty Lines with PowerShell

I often have lists where I have to split the list, and remove empty lines.  This is how I do it:

This method uses a regular expression with three different variations of line break, then the .NET method of removing empty lines.

About Alan

See http://www.akaplan.com/blog/about/
This entry was posted in PowerShell, Scripting, Scriptlets and tagged . Bookmark the permalink.

Leave a Reply