| Main index | Section 1 | Deutsch | Options |
All numbers are interpreted as floating point.
Normally integer values are printed as decimal integers.
The seq utility accepts the following options:
| | |
| Use a printf(3) style format to print each number. Only the A, a, E, e, F, f, G, g, and % conversion characters are valid, along with any optional flags and an optional numeric minimum field width or precision. The format can contain character escape sequences in backslash notation as defined in -ansiC. The default is %g. | |
| | |
| Use string to separate numbers. The string can contain character escape sequences in backslash notation as defined in -ansiC. The default is \n. | |
| | |
| Use string to terminate sequence of numbers. The string can contain character escape sequences in backslash notation as defined in -ansiC. This option is useful when the default separator does not contain a \n. | |
| | |
|
Equalize the widths of all numbers by padding with zeros as necessary.
This option has no effect with the
| |
# seq 1 3 1 2 3
Generate a sequence from 3 to 1 (included) with a default increment of -1:
# seq 3 1 3 2 1
Generate a sequence from 0 to 0.1 (included) with an increment of 0.05 and padding with leading zeroes.
# seq -w 0 .05 .1 0.00 0.05 0.10
Generate a sequence from 1 to 3 (included) with a default increment of 1, a custom separator string and a custom terminator:
# seq -s "-->" -t "[end of list] 1 3 1-->2-->3-->[end of list]
Generate a sequence from 1 to 2 (included) with an increment of 0.2 and print the results with two digits after the decimal point (using a printf(3) style format):
# seq -f %.2f 1 0.2 2 1.00 1.20 1.40 1.60 1.80 2.00
| SEQ (1) | June 20, 2020 |
| Main index | Section 1 | Deutsch | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | Some people open all the windows; wise wives welcome spring by moving the UNIX. | ” |