Created
January 16, 2017 11:06
-
-
Save johnmmoss/6d89f7ada80f9080443f78f0bd3b4c0e to your computer and use it in GitHub Desktop.
Example tail command
This file contains hidden or 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
| function tail (){ | |
| Param( | |
| [string] $file, | |
| [int] $last = 10 | |
| ) | |
| Get-Content $file | Select-Object -Last $last | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment