seq
Count from first to last, by increment. toybox
On Linux
Linux
Count from first to last, by increment. Omitted arguments default to 1. Two arguments are used as first and last. Arguments can be negative or floating point.
seq [-w|-f fmt_str] [-s sep_str] [first] [increment] last
-fUse fmt_str as a printf-style floating point format string-sUse sep_str as separator, default is a newline character-wPad to equal width with leading zeroesSeveral platforms
Output a sequence of numbers to stdout.
Print a sequence from 1 to 10
seq 10IdentifyPrint a sequence from 10 to 20
seq 10 20IdentifyPrint every 3rd number from 5 to 20
seq 5 3 20IdentifyPrint a reverse sequence from 10 to 1
seq 10 -1 1IdentifySeparate the output with a space instead of a newline
seq --separator " " 5 3 20IdentifyFormat output width to a minimum of 4 digits padding with zeros as necessary
seq --format "%04g" 5 3 20IdentifyPrint all numbers with the same width
seq --equal-width 5 3 20Identify