Skip to main content
The 2024 Developer Survey results are live! See the results
must use tail parameter for this to work
Source Link
SliverNinja - MSFT
  • 31.5k
  • 12
  • 116
  • 180

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

If you use PowerShell then this works:

Get-Content filenamehere -Wait

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

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

added 144 characters in body
Source Link
Alex
  • 13.1k
  • 3
  • 32
  • 46

If you use PowerShell then this works:

Get-Content filenamehere -Wait

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

If you use PowerShell then this works:

Get-Content filenamehere -Wait

If you use PowerShell then this works:

Get-Content filenamehere -Wait

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

Formatting. This is a great answer, so I hope more people see it.
Source Link
Justin R.
  • 23.9k
  • 26
  • 109
  • 159

If you use PowerShell then this works. Get-Content filenamehere -Wait:

Get-Content filenamehere -Wait

If you use PowerShell then this works. Get-Content filenamehere -Wait

If you use PowerShell then this works:

Get-Content filenamehere -Wait
Source Link
Alex
  • 13.1k
  • 3
  • 32
  • 46
Loading