regress/roff/nr/incr.out_ascii
raw| 1 | NR-INCR(1) General Commands Manual NR-INCR(1) |
| 2 | |
| 3 | NNAAMMEE |
| 4 | nr-incr - increment a number register by accessing it |
| 5 | |
| 6 | DDEESSCCRRIIPPTTIIOONN |
| 7 | Roff can count by merely accessing a number register: 1 2 3 |
| 8 | |
| 9 | It can also change the step size: 5 7 9 |
| 10 | |
| 11 | It can also count down: 6 3 0 -3 |
| 12 | |
| 13 | Down in negative steps is up: -1 1 3 5 |
| 14 | |
| 15 | Go to some other value, then continue incrementing with an unchanged |
| 16 | (negative) step size: 40 38 36 |
| 17 | |
| 18 | OpenBSD April 10, 2018 NR-INCR(1) |