SEQ(1)

NAME
seq - print a numeric sequence

SYNOPSIS
    seq [OPTIONS] LAST
    seq [OPTIONS] FIRST LAST
    seq [OPTIONS] FIRST INCR LAST

DESCRIPTION
seq writes a list of numbers to standard output separated by a newline character. If only LAST is provided the sequence starts from 1 and the increment is 1. LAST may be negative, in which case the sequence starts from 1 with the increment of -1.

When only FIRST and LAST are specified the increment will be either 1 or -1 based on whether FIRST is greater. Sequences are inclusive of FIRST and LAST, so "seq 3 3" results in the sequence "3".

When an increment is needed other than 1 or -1, the INCR argument should be used. Zero is not a valid increment. Positive numbers may optionally include a '+' prefix. Floating point numbers may be entered in decimal notation (e.g. 0.2223).

  OPTIONS
The following options are available:

-f FORMAT
    Set a printf format specifier instead of the default '%g'

-s STRING
    Separate each number with STRING instead of the newline character

BUGS
Corrupt printf format specifiers may be entered.

AUTHOR
Written by Michael Mikonos.

COPYRIGHT
Copyright (c) 2023 Michael Mikonos.

This code is licensed under the Artistic License 2.