mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:47:35 +00:00
less: Add -N
option to show line numbers
Co-authored-by: Liav A <liavalb@gmail.com>
This commit is contained in:
parent
499f459f0b
commit
4eb52351b4
2 changed files with 33 additions and 5 deletions
|
@ -5,8 +5,8 @@
|
|||
## Synopsis
|
||||
|
||||
```**sh
|
||||
$ cat file | less [-PXem]
|
||||
$ less [-PXem] [file]
|
||||
$ cat file | less [-PXNem]
|
||||
$ less [-PXNem] [file]
|
||||
$ cat file | more
|
||||
$ more [file]
|
||||
```
|
||||
|
@ -21,6 +21,7 @@ but largely incompatible with
|
|||
|
||||
* `-P`, `--prompt`: Set the prompt format string. See [Prompts](#prompts) for more details.
|
||||
* `-X`, `--no-init`: Don't switch to the xterm alternate buffer on startup.
|
||||
* `-N`, `--line-numbers`: Show line numbers before printed lines.
|
||||
* `-e`, `--quit-at-eof`: Immediately exit less when the last line of the document is reached.
|
||||
* `-m`, `--emulate-more`: Apply `-Xe`, set the prompt to `--More--`, and disable
|
||||
scrollback. This option is automatically applied when `less` is executed as `more`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue