Blob
1 .TH SEQ 12 .SH NAME3 seq \- print sequences of numbers4 .SH SYNOPSIS5 .B seq6 [7 .B -w8 ]9 [10 .BI -f format11 ]12 [13 .I first14 [15 .I incr16 ]17 ]18 .I last19 .SH DESCRIPTION20 .I Seq21 prints a sequence of numbers, one per line, from22 .I first23 (default 1) to as near24 .I last25 as possible, in increments of26 .I incr27 (default 1).28 The loop is:29 .sp30 .EX31 for(val = min; val <= max; val += incr) print val;32 .EE33 .sp34 The numbers are interpreted as floating point.35 .PP36 Normally integer values are printed as decimal integers.37 The options are38 .TP "\w'\fL-f \fIformat\fLXX'u"39 .BI -f format40 Use the41 .IR print (3)-style42 .I format43 .IR print44 for printing each (floating point) number.45 The default is46 .LR %g .47 .TP48 .B -w49 Equalize the widths of all numbers by padding with50 leading zeros as necessary.51 Not effective with option52 .BR -f ,53 nor with numbers in exponential notation.54 .SH EXAMPLES55 .TP56 .L57 seq 0 .05 .158 Print59 .BR "0 0.05 0.1"60 (on separate lines).61 .TP62 .L63 seq -w 0 .05 .164 Print65 .BR "0.00 0.05 0.10" .66 .SH SOURCE67 .B \*9/src/cmd/seq.c68 .SH BUGS69 Option70 .B -w71 always surveys every value in advance.72 Thus73 .L74 seq -w 100000000075 is a painful way to get an `infinite' sequence.