Re:My Microsoft Experience (2013)
by pjc50 on Monday May 25, 2015 @10:32AM
(#9600165)
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.