Created
May 4, 2017 07:50
-
-
Save lennybacon/8da7682e44d5b8fdf74b5631e169ecb5 to your computer and use it in GitHub Desktop.
Tail with PowerShell
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 <Path> -Wait -Tail 10 | |
# Print whole file and wait for appended lines and print them | |
cat <Path> -Wait | |
# Print last 10 lines and wait for appended lines and print them | |
cat <Path> -Tail 10 -Wait |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment