summaryrefslogtreecommitdiffstats
path: root/man/seq.1
blob: f9f65c5717fbb4c1760e5f5d1d636c354019989e (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
.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.48.5.
.TH SEQ "1" "August 2023" "GNU coreutils 9.4" "User 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
.\" Add any additional description here
.PP
Print numbers from FIRST to LAST, in steps of INCREMENT.
.PP
Mandatory arguments to long options are mandatory for short options too.
.TP
\fB\-f\fR, \fB\-\-format\fR=\fI\,FORMAT\/\fR
use printf style floating\-point FORMAT
.TP
\fB\-s\fR, \fB\-\-separator\fR=\fI\,STRING\/\fR
use STRING to separate numbers (default: \en)
.TP
\fB\-w\fR, \fB\-\-equal\-width\fR
equalize width by padding with leading zeroes
.TP
\fB\-\-help\fR
display this help and exit
.TP
\fB\-\-version\fR
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 AUTHOR
Written by Ulrich Drepper.
.SH "REPORTING BUGS"
GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
.br
Report any translation bugs to <https://translationproject.org/team/>
.SH COPYRIGHT
Copyright \(co 2023 Free Software Foundation, Inc.
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"
Full documentation <https://www.gnu.org/software/coreutils/seq>
.br
or available locally via: info \(aq(coreutils) seq invocation\(aq