tshm
10/25/2015 - 10:48 AM

tail command with powershell

tail command with powershell


# get-date -format yyyyMMdd | %{ $dd = $_ }
$dd = $(get-date -format yyyyMMdd)
cat ("C:\log\{0}.log" -f $dd) -wait -tail 10