Re:My Microsoft Experience (2013)
by tacticus on Monday May 25, 2015 @03:02AM
(#9598946)
Having used powershell and winrm recently. It doesn't matter if it's a better idea. it's a piece of crap with horrible verbosity issues and so many stupid corner cases it just isn't funny.
[ Parent
| on HN ]
It seems ok to me, but I don't have extensive experience in it. What specifically do you find problematic? Genuinely interested.
Powershell's object pipeline is a great idea. Its interface with the text world trips over at the last hurdle, because it truncates lines at terminal width even if redirected into a file.
I have in my notes:
<pre>Select-String " 23:56.00" -Path file.txt | out-string -width 10000</pre>
better (no headers):
<pre>Select-String " 23:56.00" -Path file.txt | ForEach-Object { Write-Output $_.Line } | Out-File t.txt</pre>
I eventually installed a proper grep and gave up trying to use Select-String.
The hoops you have to jump through to write and run script files are absurd as well, compared to UNIX where you just need to set the executable bit.