PowerShell Tail Command

Ответить
admin
Администратор
Сообщения: 198
Зарегистрирован: 05 янв 2011, 04:19

PowerShell Tail Command

Сообщение 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
Ответить