henesyinit from p9fd787fda5 years agoHistory
69 lines · 1.0 KB · Text
RawDownload
.TH SEQ 1.SH NAMEseq \- print sequences of numbers.SH SYNOPSIS.B seq[.B -w][.BI -f format][.I first[.I incr]].I last.SH DESCRIPTION.I Seqprints a sequence of numbers, one per line, from.I first(default 1) to as near .I lastas possible, in increments of.I incr(default 1).The numbers are interpreted as floating point..PPNormally integer values are printed as decimal integers.The options are.TP "\w'\fL-f \fIformat\fLXX'u".BI -f formatUse the .IR print (2)-style.I format.IR printfor printing each (floating point) number.The default is .LR %g ..TP.B -wEqualize the widths of all numbers by padding withleading zeros as necessary.Not effective with option.BR -f ,nor with numbers in exponential notation..SH EXAMPLES.TP.Lseq 0 .05 .1Print .BR "0 0.05 0.1" (on separate lines)..TP.Lseq -w 0 .05 .1Print.BR "0.00 0.05 0.10" ..SH SOURCE.B /sys/src/cmd/seq.c.SH BUGSOption.B -walways surveys every value in advance.Thus.Lseq -w 1000000000is a painful way to get an `infinite' sequence.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t