1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:17:36 +00:00

less: Add -N option to show line numbers

Co-authored-by: Liav A <liavalb@gmail.com>
This commit is contained in:
Tim Ledbetter 2023-09-12 17:56:07 +01:00 committed by Andreas Kling
parent 499f459f0b
commit 4eb52351b4
2 changed files with 33 additions and 5 deletions

View file

@ -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`