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.
try this
ls -Filter *.err|Measure-Object -Line | select -expand lines
Jeff Hicks - a PowerShell MVP and more - has made a little filter to solve problems like this. It's called scrub. Hope that helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With