tail -f a/b/c.log d/e/f.log
像这样的日志:
==> a/b/c.log <==
xxx
yyy
Exception happened 1
zzz
==> d/e/f.log <==
rrr
Exception happened 2
sss
如何更改命令以便像这样拾取包含“Exception”的行:
a/b/c.log: Exception happened 1
d/e/f.log: Exception happened 2
该解决方案可以使用任何 Linux 命令。