아래에 표시된 것처럼 여러 파일을 한 번에 테일링 할 때 각 줄의 시작 부분에 파일 이름을 표시하는 방법이 있습니까?
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-stop
-vtail 에 대한 (verbose) 옵션을 볼 수 있습니다 . 이것은 귀하의 요청과 정확히 일치하지는 않지만 시작입니다.