A Windows Equivalent Of The Unix Tail Command


Answer :

If you use PowerShell then this works:

Get-Content filenamehere -Wait -Tail 30 

Posting Stefan's comment from below, so people don't miss it

PowerShell 3 introduces a -Tail parameter to include only the last x lines


I'd suggest installing something like GNU Utilities for Win32. It has most favourites, including tail.


I've always used Baretail for tailing in Windows. It's free and pretty nice.

Edit: for a better description of Baretail see this question


Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android SDK Location Should Not Contain Whitespace, As This Cause Problems With NDK Tools