Folks,
I am new to Powershell and i'm coming from Linux; however, I am eager to learn Powershell since it looks very rich. Yet, I am having some problems with my Powershell code.
I need "tail -f" features, so I started using the following
Get-Content b.log | Select-Object -last 5 | -Wait
However, I get errors. Now I have noticed that the following runs a littel faster.
(Get-Content b.log)[-3 .. -1]
These methods are working for me to generate the tail end of my log file; however, I need to watch it in real time.
I am not sure how to write my string so that I just get the tail end of the log, and watch it at the sametime...
Thanks,
JJ