Created
September 4, 2015 18:55
-
-
Save AdamNaj/92f64d064df0338e563c to your computer and use it in GitHub Desktop.
Get last 10 lines of the latest sitecore blog.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem "$($SitecoreLogFolder)\log*.*" | Sort-Object -Descending LastWriteTime | Select-Object -First 1 | Get-Content -Tail 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Finally got around to using this. Simply brilliant.