Skip to content

Instantly share code, notes, and snippets.

@johnmmoss
Created January 16, 2017 11:06
Show Gist options
  • Select an option

  • Save johnmmoss/6d89f7ada80f9080443f78f0bd3b4c0e to your computer and use it in GitHub Desktop.

Select an option

Save johnmmoss/6d89f7ada80f9080443f78f0bd3b4c0e to your computer and use it in GitHub Desktop.
Example tail command
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