以下に示すように複数のファイルを一度にテーリングする場合、各行の先頭にファイル名を表示する方法はありますか?
tail -f one.log two.log
電流出力
==> one.log <==
contents of one.log here...
contents of one.log here...
==> two.log <==
contents of one.log here...
contents of two.log here..
のようなものを探しています
one.log: contents of one.log here...
one.log: contents of one.log here...
two.log: contents of two.log here...
two.log: contents of two.log here...
マルチテールはこれを行うことができます
—
ジル「SO-悪であるのをやめる」
-v
tailの(詳細)オプションを見ることができます。これはあなたの要求と正確に一致しないかもしれませんが、開始です。