1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-11 20:11:43 +00:00
Files
sharkdp--bat/doc
MeGaurav4 061fb216cb feat: implement -b / --number-nonblank for cat -b compatibility
Adds a `-b` / `--number-nonblank` flag that numbers only non-blank
lines.  Blank lines (those containing only the line terminator) are
printed without a number and don't advance the counter, matching
`cat -b` behaviour.

- `-b` implies `--style=numbers` (same as `-n`), but only counts
  non-blank lines
- `-b` takes precedence over `-n`: both `-bn` and `-nb` behave like `-b`
- `-bp` disables numbering (plain mode wins)
- Works with files, stdin, and piped output (like `-n`)

Closes #3856.
2026-08-11 11:48:10 +05:30
..
2026-06-05 17:40:39 +03:00
2025-10-19 21:06:26 +03:00
2025-10-19 21:06:26 +03:00
2025-10-19 21:06:26 +03:00
2025-08-09 13:53:00 +08:00
2026-04-30 10:18:58 +02:00