Skip to content

Instantly share code, notes, and snippets.

@lennybacon
Created May 4, 2017 07:50
Show Gist options
  • Save lennybacon/8da7682e44d5b8fdf74b5631e169ecb5 to your computer and use it in GitHub Desktop.
Save lennybacon/8da7682e44d5b8fdf74b5631e169ecb5 to your computer and use it in GitHub Desktop.
Tail with PowerShell
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