Created
March 25, 2015 09:53
-
-
Save aburok/26fe3e13766d06337ca7 to your computer and use it in GitHub Desktop.
Get last n lines of file , powershell, tail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-Content "path/to/file" | Select-Object -Last 10 | |
OR | |
gc "path/to/file" | select -Last 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment