如何拖尾文件并捕获一分钟的输出?

bla*_*ing 3 tail

我正在跟踪一个日志文件。如何捕获一分钟的输出?

Gil*_*il' 9

tail -f mylogfile & sleep 60; kill $!
Run Code Online (Sandbox Code Playgroud)