Dari less, ketik slalu ketikkan nama file yang ingin Anda simpan, lalu Enter.
Dari manhalaman, di bawah COMMANDS:
s filename
Save the input to a file. This only works if the input is a pipe, not an ordinary file.
manHalaman juga menyatakan bahwa, tergantung pada instalasi khusus Anda, sperintah itu mungkin tidak tersedia. Dalam hal ini, Anda dapat pergi ke baris 1 dengan:
g or < or ESC-<
Go to line N in the file, default 1 (beginning of file).
dan pipa seluruh konten catdengan:
| <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.
jadi:
g|$cat > filename
atau:
<|$cat > filename
yaitu jenis gatau <( g atau kurang dari ) | $( pipa lalu dolar ) lalu cat > filenamedan Enter.
Ini harus berfungsi apakah input adalah pipa atau file biasa.
lesssekali saya sudah membukaless.