LoginSignup
1
1

More than 3 years have passed since last update.

PowerShell で「tail -f」を実現する。

Last updated at Posted at 2019-06-11

前提条件:Windows PowerShell
バージョン:3.0以上

PowerSHellにてLinuxコマンドでいうtail -f を実現したいこともあるでしょう。
(例えばサービスが起動しないがどのようなエラーがログに出るのか、など)
下記の方法で可能です。


 Get-Content -Path ファイル名 -Encoding "UTF8" -Tail 0 -Wait

※ポイントはエンコードをUTF8にしてあげること。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1