Remove Empty Lines From Powershell Output
powershell
Solution
try this
ls -Filter *.err|Measure-Object -Line | select -expand lines
Problem
i've a little problem in powershell with all my cmd output. I have to see on the screen a short cmd result. In the specific this is one of my problem: cmd ``` PS C:\C_Directory> ls -Filter *.err|Measure-Object -Line| fw 1 ``` As you can see, the Format Wide output it's with more empity lines. How can i transfor this output in : ``` 1 ``` Thanks in advance.