Windows: A powershell tail “clone”


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


Advertisment to support

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.