1SEQ(1) User Commands SEQ(1)
2
3
4
6 seq - print a sequence of numbers
7
9 seq [OPTION]... LAST
10 seq [OPTION]... FIRST LAST
11 seq [OPTION]... FIRST INCREMENT LAST
12
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. FORMAT must be suitable for printing one argu‐
40 ment of type 'double'; it defaults to %.PRECf if FIRST, INCREMENT, and
41 LAST are all fixed point decimal numbers with maximum precision PREC,
42 and to %g otherwise.
43
44 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
45 Report seq translation bugs to <http://translationproject.org/team/>
46
48 Written by Ulrich Drepper.
49
51 Copyright © 2013 Free Software Foundation, Inc. License GPLv3+: GNU
52 GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
53 This is free software: you are free to change and redistribute it.
54 There is NO WARRANTY, to the extent permitted by law.
55
57 The full documentation for seq is maintained as a Texinfo manual. If
58 the info and seq programs are properly installed at your site, the com‐
59 mand
60
61 info coreutils 'seq invocation'
62
63 should give you access to the complete manual.
64
65
66
67GNU coreutils 8.22 October 2018 SEQ(1)