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
1 2 3 4 5 6 7 |
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 2 |
1 |
Thanks in advance.
Answer:
try this
1 2 |
ls -Filter *.err|Measure-Object -Line | select -expand lines |