"tail -f ... | grep ..."을 에뮬레이션하기 위해 less를 어떻게 사용할 수 있습니까?

"tail -f ... | grep ..."을 에뮬레이션하기 위해 less를 어떻게 사용할 수 있습니까?

사용되면 tail -f some/filename더 많은 콘텐츠가 파일에 추가될 때까지 기다립니다. 좋다 less +F ....

tail -f some/filename | ...그러나 다음 과 같은 파이프가 있으면less +F ... | ... 확실히동일한 방식으로 작동합니다. 즉, 콘텐츠가 파일에 추가될 때까지 기다립니다. 종료됩니다. less매뉴얼 페이지에 다음 과 같이 나와 있지만

   F      Scroll forward, and keep trying to read when the end of file is reached.  Normally this command would be used when already
          at the end of the file.  It is a way to monitor the tail of a file which is growing while it is being viewed.  (The behav-
          ior is similar to the "tail -f" command.)

이 경우 사용 방법 less- 파일 끝에 도달했을 때 종료되는 것을 원하지 않습니다. 그것이 절충안이라면 파이프라인의 마지막 10줄을 놓치는 것은 정말 괜찮습니다.

감사해요

관련 정보