Remove Empty Lines From Powershell Output

Question:

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

As you can see, the Format Wide output it’s with more empity lines. How can i transfor this output in :

Thanks in advance.

Answer:

try this

Source:

Remove Empty Lines From Powershell Output by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply