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

Advertisment to support michlstechblog.info

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.