|
|
1.1 root 1: .TH SEQ 1
2: .SH NAME
3: seq \- print sequences of numbers
4: .SH SYNOPSIS
5: .B seq
6: [
7: .B -w
8: ]
9: [
10: .BI -f format
11: ]
12: [
13: .I first
14: [
15: .I incr
16: ]
17: ]
18: .I last
19: .SH DESCRIPTION
20: .I Seq
21: prints a sequence of numbers, one per line, from
22: .I first
23: (default 1) to as near
24: .I last
25: as possible, in increments of
26: .I incr
27: (default 1).
28: The numbers are interpreted as floating point.
29: .PP
30: Normally integer values are printed as decimal integers.
31: The options are
32: .TP "\w'\fL-f \fIformat\fLXX'u"
33: .BI -f format
34: Use the
35: .IR print (2)-style
36: .I format
37: .IR print
38: for printing each (floating point) number.
39: The default is
40: .LR %g .
41: .TP
42: .B -w
43: Equalize the widths of all numbers by padding with
44: leading zeros as necessary.
45: Not effective with option
46: .BR -f ,
47: nor with numbers in exponential notation.
48: .SH EXAMPLES
49: .TP
50: .L
51: seq 0 .05 .1
52: Print
53: .BR "0 0.05 0.1"
54: (on separate lines).
55: .TP
56: .L
57: seq -w 0 .05 .1
58: Print
59: .BR "0.00 0.05 0.10" .
60: .SH SOURCE
61: .B /sys/src/cmd/seq.c
62: .SH BUGS
63: Option
64: .B -w
65: always surveys every value in advance.
66: Thus
67: .L
68: seq -w 1000000000
69: is a painful way to get an `infinite' sequence.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.