当一次拖尾多个文件时,如下图所示,有什么办法在每行的开头显示文件名吗?
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...
我想multitail可以做到这一点
—
Gilles'SO-不要再邪恶了''
-v
tail 的(详细)选项。这可能不完全符合您的要求,但这只是一个开始。