1SEQ(1)                           User Commands                          SEQ(1)
2
3
4

NAME

6       seq - print a sequence of numbers
7

SYNOPSIS

9       seq [OPTION]... LAST
10       seq [OPTION]... FIRST LAST
11       seq [OPTION]... FIRST INCREMENT LAST
12

DESCRIPTION

14       Print numbers from FIRST to LAST, in steps of INCREMENT.
15
16       Mandatory  arguments  to  long  options are mandatory for short options
17       too.
18
19       -f, --format=FORMAT
20              use printf style floating-point FORMAT
21
22       -s, --separator=STRING
23              use STRING to separate numbers (default: \n)
24
25       -w, --equal-width
26              equalize width by padding with leading zeroes
27
28       --help display this help and exit
29
30       --version
31              output version information and exit
32
33       If FIRST or INCREMENT is omitted, it defaults to 1.  That is, an  omit‐
34       ted  INCREMENT defaults to 1 even when LAST is smaller than FIRST.  The
35       sequence of numbers ends when the sum of the current number and  INCRE‐
36       MENT  would  become  greater than LAST.  FIRST, INCREMENT, and LAST are
37       interpreted as floating point values.  INCREMENT is usually positive if
38       FIRST  is smaller than LAST, and INCREMENT is usually negative if FIRST
39       is greater than LAST.  INCREMENT must not be 0; none of  FIRST,  INCRE‐
40       MENT and LAST may be NaN.  FORMAT must be suitable for printing one ar‐
41       gument of type 'double'; it defaults to %.PRECf  if  FIRST,  INCREMENT,
42       and  LAST  are  all  fixed point decimal numbers with maximum precision
43       PREC, and to %g otherwise.
44

AUTHOR

46       Written by Ulrich Drepper.
47

REPORTING BUGS

49       GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
50       Report any translation bugs to <https://translationproject.org/team/>
51
53       Copyright © 2021 Free Software Foundation, Inc.   License  GPLv3+:  GNU
54       GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
55       This  is  free  software:  you  are free to change and redistribute it.
56       There is NO WARRANTY, to the extent permitted by law.
57

SEE ALSO

59       Full documentation <https://www.gnu.org/software/coreutils/seq>
60       or available locally via: info '(coreutils) seq invocation'
61
62
63
64GNU coreutils 9.0                 March 2022                            SEQ(1)
Impressum