Skip to content

Instantly share code, notes, and snippets.

@bmorrisondev
Created April 14, 2020 13:40
Show Gist options
  • Select an option

  • Save bmorrisondev/e42e61a4d93c05595f49e5fa708a940c to your computer and use it in GitHub Desktop.

Select an option

Save bmorrisondev/e42e61a4d93c05595f49e5fa708a940c to your computer and use it in GitHub Desktop.
A #powershell one liner that mimics `tail` in Linux #100daysofcode #developers
# -Tail grabs the previous N lines, -Wait will watch the file and log out the changes to the session.
Get-Content ./mylog.log -Tail 5 –Wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment