mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 13:42:11 +01:00
Add cheat on how to dump content of less to file
This commit is contained in:
parent
3be95142ed
commit
13fdcec332
1 changed files with 8 additions and 1 deletions
|
@ -1,2 +1,9 @@
|
|||
# To disable the terminal refresh when exiting
|
||||
less -X
|
||||
|
||||
# To save the contents to a file
|
||||
# Method 1 - Only works when the input is a pipe
|
||||
s <filename>
|
||||
|
||||
# Method 2 - This should work whether input is a pipe or an ordinary file.
|
||||
Type g or < (g or less-than) | $ (pipe then dollar) then cat > <filename> and Enter.
|
||||
|
|
Loading…
Reference in a new issue