SEQ(1plan9) | SEQ(1plan9) |
seq - print sequences of numbers
seq [ -w ] [ -fformat ] [ first [ incr ] ] last
Seq prints a sequence of numbers, one per line, from first (default 1) to as near last as possible, in increments of incr (default 1). The loop is:
for(val = min; val <= max; val += incr) print val;
The numbers are interpreted as floating point.
Normally integer values are printed as decimal integers. The options are
/src/cmd/seq.c
Option -w always surveys every value in advance. Thus seq -w 1000000000 is a painful way to get an `infinite' sequence.