seq

Counts a sequence of numbers (POSIX, toybox)

Syntax:

seq [-w|-f fmt_str] [-s sep_str] [first] [increment] last

Runs on:

QNX OS

Options:

-f fmt_str
Use fmt_str as a printf-style floating point format string.
-s sep_str
Use sep_str as separator. The default is a newline character.
-w fmt_str
Pad to equal width with leading zeroes.
first
The first number of the sequence.
increment
The increment used to count.
last
The last number of the sequence.

Description:

The seq utility counts a sequence from first to last, by increments. Omitted arguments default to 1. Two arguments are used as the first and last of the sequence. Arguments can be negative or floating point.

This utility is provided as part of the toybox package. For information on how to enable it, see toybox.

Contributing author:

Rob Landley and the toybox project (see https://landley.net/toybox/).

Page updated: