Using PowerShell for “head” and “tail” Operations

Reading Time: < 1 minute

This discussion is going to be straight forward with examples.

get-content log.txt -Tail 10
get-content log.txt -wait
gc log.txt | select -first 10
gc log.txt -tail 10 -wait
This entry was posted in Microsoft, PowerShell. Bookmark the permalink.