Skip to content

Instantly share code, notes, and snippets.

@AdamNaj
Created September 4, 2015 18:55
Show Gist options
  • Save AdamNaj/92f64d064df0338e563c to your computer and use it in GitHub Desktop.
Save AdamNaj/92f64d064df0338e563c to your computer and use it in GitHub Desktop.
Get last 10 lines of the latest sitecore blog.
Get-ChildItem "$($SitecoreLogFolder)\log*.*" | Sort-Object -Descending LastWriteTime | Select-Object -First 1 | Get-Content -Tail 10
@michaellwest
Copy link

Finally got around to using this. Simply brilliant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment