답변:
현재 터미널에 표시된 섹션 만 저장하려면 |명령을 사용할 수 있습니다 .
보낸 사람 man less:
| <m> shell-command
<m> represents any mark letter. Pipes a section of the input file to the given
shell command. The section of the file to be piped is between the first line on the
current screen and the position marked by the letter. <m> may also be '^' or '$' to
indicate beginning or end of file respectively.
If <m> is '.' or newline, the current screen is piped.
|(파이프 기호).터미널 (또는 히트에 볼의 것만을 선택 마크 Enter)tee예를 들어 파일에 저장하는 데 사용tee /tmp/section_of_big_file.txt스크린 샷이있는 순서 :



cat foo | less -o bar경우bar출력 파일 인foo입력 파일?