Від lessвведіть sпотім введіть ім'я файлу , який ви хочете зберегти, а потім Enter.
Зі manсторінки, під COMMANDS:
s filename
Save the input to a file. This only works if the input is a pipe, not an ordinary file.
manНа сторінці також зазначено, що, залежно від конкретної установки, sкоманда може бути недоступною. У такому випадку ви можете перейти до рядка 1:
g or < or ESC-<
Go to line N in the file, default 1 (beginning of file).
і передайте весь вміст cat:
| <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.
так що:
g|$cat > filename
або:
<|$cat > filename
тобто тип gабо <( g або менше ) | $( труба, то долар ), тоді cat > filenameі Enter.
Це повинно працювати, будь то вхідна труба чи звичайний файл.
lessколи я вже відкривless.