The Powershell equivalent of the unix tee is tee-object....which, by default is aliased to tee
So you can do this:
get-process | tee c:\temp\test_tee.txt
...to both get a list of processes on your screen and get that output saved into the file in c:\temp
time
The Powershell equivalent of the bash shell 'time' is 'measure-command'.
So, in bash you would do this:
time egrep ORA- *log
....and get all the egrep output, then
In Powershell, you would do this
...and get...
...you don't get the 'user CPU' time and 'system CPU' time, but you do get the added bonus of seeing how long the command took rendered as a fraction of a day!
I got this from a comment by Manung Han on the Lab49 Blog. Doug Finke shares touch function in a later comment on the same post that fully implements the linux command.