Respostas:
Para salvar apenas a seção atualmente exibida no seu terminal, você pode usar o |comando
De 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.
|(o símbolo do tubo).marca para selecionar apenas o que está visível no seu terminal (ou apenas pressione Enter)teepara salvar em um arquivo, por exemplotee /tmp/section_of_big_file.txtA sequência com capturas de tela:



cat foo | less -o barondebarestão o arquivo de saída efooo arquivo de entrada?