John Kumpf
SS64.com is so helpful!!!
I was just working with Tee-Object in powershell: ss64.com/ps/tee-object.html (I'm not allowed to post links--just joined)
Apparently Powershell 3.0 added an -Append switch.
It would be greatly helpful to the many happy users of ss64 (including me) to include this new switch in the documentation here.
I found out about -append here: stackoverflow.com/questions/15696976/powershell-tee-object-without-overwriting-file
For clarity, Tee-Object by default overwrites the output. So:
Code: Select all
write-output "line 1" | Tee-Object $outfile
write-output "line 2" | Tee-Object $outfile
Whereas,
Code: Select all
write-output "line 1" | Tee-Object -Append $outfile
write-output "line 2" | Tee-Object -Append $outfile
----------------------------
Today 10:35
Simon Sheppard
Thanks John, now added
https://ss64.com/ps/tee-object.html