Skip to content

Instantly share code, notes, and snippets.

@Jeff-Lewis
Forked from tshm/tail.ps1
Created December 22, 2015 17:15
Show Gist options
  • Save Jeff-Lewis/88eb59ca3cd5452ee812 to your computer and use it in GitHub Desktop.
Save Jeff-Lewis/88eb59ca3cd5452ee812 to your computer and use it in GitHub Desktop.
tail command with powershell
# get-date -format yyyyMMdd | %{ $dd = $_ }
$dd = $(get-date -format yyyyMMdd)
cat ("C:\log\{0}.log" -f $dd) -wait -tail 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment