Страница 1 из 1

PowerShell Tail Command

Добавлено: 21 апр 2017, 16:41
admin
UTF-8

Код: Выделить всё

chcp 65001


As an example:

Gets the last two lines of the log file:

Код: Выделить всё

  Get-Content  .\u_ex160511.log -Tail 2




Gets the last two lines of the log file, and waits for more.


Код: Выделить всё

Get-Content  .\u_ex160511.log -Tail 2 –Wait