SyntaxFix
Write A Post
Hire A Developer
Questions
If you actually want to filter blank lines from a file then you may try this:
(gc $source_file).Trim() | ? {$_.Length -gt 0}