Skip to content

Instantly share code, notes, and snippets.

@lantrix
Created August 7, 2015 05:23
Show Gist options
  • Select an option

  • Save lantrix/8735d824209021ffc1f4 to your computer and use it in GitHub Desktop.

Select an option

Save lantrix/8735d824209021ffc1f4 to your computer and use it in GitHub Desktop.
Powershell Pseudo Tail
Get-ChildItem -Path 'C:\AppLogs\customresources\20150807\' -Filter 'exe*' `
-Recurse | % {Get-Content -Path $_.FullName -Tail 50 | Select-String -Pattern 'MockServer-1'}
Get-Content -Path 'C:\AppLogs\customresources\20150807\exe*.log' `
-Tail 3000 | Select-String 'MockServer-1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment