Posted By tomaz on 27 Feb 2010 09:19 AM
Hello!
I would like to redirect my output data into two files, something like that: data > dip.txt and also data >> dip2.txt. Is this possible? Thank you in advance
Could could do exactly that into lines if your data is already in a $data variable:
$data > dip.txt
$data >> dip2.txt
If it is not in a variable and you'd rather do it one pipeline then perhaps the following will work:
data | Tee-Object dip.txt | Out-File dip2.txt -Append