Powershell Tip #16: Unix tail equivalent command (to monitor a file) By powershellgu | August 4, 2015 2 Comments Tip: You can monitor the latest changes of a file (example: a log file with the latest logons). Get-Content -Path 'C:\ProgramData\chocolatey\logs\chocolatey.log' -Tail 10 -Wait -Tail 10 : to display the latest 10 lines of the file -Wait : to see the updates in real time
michel dsouza January 14, 2016 -wait command fail to display the updated content in real time. Reply ↓
Pingback: Powershell Tip #15: Use a BrowseFolder dialog for user input | Powershell Guru
-wait command fail to display the updated content in real time.