I am using
(Get-Content .\*install.txt) | sort | get-unique | Set-Content installreport.txtto combine multiple log files into one and exclude duplicates. The log files all basically contain these types of strings:
iTunes : OK
QuickTime : OK
Basically the first OK specifies that the updater application that ran, and the next lines show what applications were updated. On the final installreport.txt using get-unique removes the multiple top OK statements, but I would also like get the OK placed at the top of the text file (just the sing OK statement, not the ones next to the application names) . Currently it is sorted in the middle. Can someone point me into the right direction on how to do this?