aboutsummaryrefslogtreecommitdiff
path: root/man/seq.1
blob: e3c1fa0528b4a1933b1585c136300c5bd5a7e596 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
.\" Adapted for BNU from the GNU Coreutils 9.11 manual page; see doc/README.md.
.TH SEQ "1" "2026-07-28" "BNU 9.11" "BNU Commands"
.SH NAME
seq \- print a sequence of numbers
.SH SYNOPSIS
.B seq
[\fI\,OPTION\/\fR]... \fI\,LAST\/\fR
.br
.B seq
[\fI\,OPTION\/\fR]... \fI\,FIRST LAST\/\fR
.br
.B seq
[\fI\,OPTION\/\fR]... \fI\,FIRST INCREMENT LAST\/\fR
.SH DESCRIPTION
.\" This page is derived from GNU Coreutils documentation.
This page documents BNU, an independent Bun implementation compatible with
GNU Coreutils 9.11.
.PP
Print numbers from FIRST to LAST, in steps of INCREMENT.
.PP
Mandatory arguments to long options are mandatory for short options too.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#seq-f'\fB\-f, \-\-format=\,FORMAT\fP\X'tty: link'\/\fR
use printf style floating\-point FORMAT
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#seq-s'\fB\-s, \-\-separator=\,STRING\fP\X'tty: link'\/\fR
use STRING to separate numbers (default: \en)
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#seq-w'\fB\-w, \-\-equal\-width\fP\X'tty: link'
equalize width by padding with leading zeroes
.TP
\X'tty: link https://www.gnu.org/software/coreutils/seq#seq--help'\fB\-\-help\fP\X'tty: link'
display this help and exit
.TP
\X'tty: link https://www.gnu.org/software/coreutils/seq#seq--version'\fB\-\-version\fP\X'tty: link'
output version information and exit
.PP
If FIRST or INCREMENT is omitted, it defaults to 1.  That is, an
omitted INCREMENT defaults to 1 even when LAST is smaller than FIRST.
The sequence of numbers ends when the sum of the current number and
INCREMENT would become greater than LAST.
FIRST, INCREMENT, and LAST are interpreted as floating point values.
INCREMENT is usually positive if FIRST is smaller than LAST, and
INCREMENT is usually negative if FIRST is greater than LAST.
INCREMENT must not be 0; none of FIRST, INCREMENT and LAST may be NaN.
FORMAT must be suitable for printing one argument of type 'double';
it defaults to %.PRECf if FIRST, INCREMENT, and LAST are all fixed point
decimal numbers with maximum precision PREC, and to %g otherwise.
.SH AUTHORS
Upstream GNU Coreutils documentation authors:
Written by Ulrich Drepper.
.br
Adapted for BNU; the BNU implementation is independent.
.SH "REPORTING BUGS"
Report BNU bugs at <https://github.com/Soccera1/bnu/issues>.
.br
For upstream GNU Coreutils, see <https://www.gnu.org/software/coreutils/>.
.SH COPYRIGHT
Copyright \(co 2026 Free Software Foundation, Inc.
.br
This manual page was adapted for BNU in 2026.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
.br
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
.SH "SEE ALSO"
Upstream documentation <https://www.gnu.org/software/coreutils/seq>
.br
BNU documentation is available locally via: info \(aq(bnu) seq invocation\(aq