commands detail - t
tail -f
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
So, in bash you would do this:
….and get all the egrep output, then
measure-command {select-string ORA- *.sql}
…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!
touch - update the modified date
set-itemproperty -path c:\temp\new_empty_file.dat -name LastWriteTime -value $(get-date)
I got this from a comment by on the Lab49 Blog. Doug Finke shares in a later comment on the same post that fully implements the linux command.