File:  [Research Unix] / researchv10dc / man / adm / man1 / seq.1
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.TH SEQ 1
.CT 1 numbers
.SH NAME
seq \- print sequences of numbers
.SH SYNOPSIS
.B seq
[
.B -w
]
[
.BI -f format
]
[
.I first
[
.I incr
]
]
.I last
.SH DESCRIPTION
.I Seq
prints a sequence of numbers, one per line, from
.I first
(default 1) to as near 
.I last
as possible, in increments of
.I incr
(default 1).
The numbers are interpreted as floating point.
.PP
Normally integer values are printed as decimal integers.
The options are
.TP
.BI -f format
Use the 
.IR printf (3)-style
.I format
for printing each (floating point) number.
The default is 
.LR %g .
.TP
.B -w
Equalize the widths of all numbers by padding with
leading zeros as necessary.
Not effective with option
.BR -f ,
nor with numbers in exponential notation.
.SH EXAMPLES
.TP
.L
seq 0 .05 .1
Print 
.BR "0 0.05 0.1" 
(on separate lines).
.TP
.L
seq -w 0 .05 .1
Print
.BR "0.00 0.05 0.10" .
.SH BUGS
Option
.B -w
always surveys every value in advance, although that's not necessary 
for integers.
Thus
.L
seq -w 1000000000
is a hopeless way to get an `infinite' sequence.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.