Windows: A powershell tail “clone”

Hi,

UNIX has some useful tools. One of it is tail. Often used to monitor changes (appends) within a file in real time.

The powershell command let Get-Content has such a function:

PS D:\> Get-Content myFileToMonitor -Wait 

with the parameter Tail only the last x lines are shown

PS D:\> Get-Content myFileToMonitor -Wait -Tail 10

Michael

Leave a Reply