Dec 23, 2020

[memo] tail -f, grep in windows

Run PowerShell

tail -f

Get-Content -Path C:\MyLogs\mylog.log -Wait -Tail 100


tail -f | grep

Get-Content -Path C:\MyLogs\mylog.log -Wait -Tail 100 | Select-String "Search Word"


No comments: