Changeset View
Standalone View
seq/seq.1
Context not available. | |||||
.Sh EXIT STATUS | .Sh EXIT STATUS | ||||
.Ex -std | .Ex -std | ||||
.Sh EXAMPLES | .Sh EXAMPLES | ||||
Generate a sequence from 1 to 3 (included) with a default increment of 1: | |||||
bcr: I'd add "(including)" after the 3 to indicate that the last number provided is also part of the… | |||||
Done Inline ActionsShouldn't it be inclusive instead of including? Also, a sequence and a default increment. The same for other examples as well I think. 0mp: Shouldn't it be inclusive //instead// of //including//?
Also, //a sequence// and //a default… | |||||
Done Inline ActionsI used included as it is used in the Wikipedia article of ISO 31-11 fernape: I used //included// as it is used in the Wikipedia article of [[ https://en.wikipedia. | |||||
Done Inline ActionsNice! 0mp: Nice! | |||||
.Bd -literal -offset indent | .Bd -literal -offset indent | ||||
# seq 1 3 | # seq 1 3 | ||||
1 | 1 | ||||
2 | 2 | ||||
3 | 3 | ||||
.Ed | |||||
.Pp | |||||
Generate a sequence from 3 to 1 (included) with a default increment of -1: | |||||
Done Inline ActionsSame here for the 1: (including) bcr: Same here for the 1: (including) | |||||
.Bd -literal -offset indent | |||||
# seq 3 1 | # seq 3 1 | ||||
3 | 3 | ||||
2 | 2 | ||||
1 | 1 | ||||
.Ed | |||||
.Pp | |||||
Generate a sequence from 0 to 0.1 (included) with an increment of 0.05 and padding | |||||
Done Inline ActionsThe increment is 0.05 juan.molina_club.fr: The increment is 0.05 | |||||
Done Inline ActionsNice catch! fernape: Nice catch! | |||||
with leading zeroes. | |||||
Done Inline ActionsIf you want, you can make all these descriptions end in a colon (:) for consistency. bcr: If you want, you can make all these descriptions end in a colon (:) for consistency. | |||||
.Bd -literal -offset indent | |||||
# seq -w 0 .05 .1 | # seq -w 0 .05 .1 | ||||
0.00 | 0.00 | ||||
0.05 | 0.05 | ||||
0.10 | 0.10 | ||||
.Ed | .Ed | ||||
.Pp | |||||
Generate a sequence from 1 to 3 (included) with a default increment of 1, | |||||
Done Inline Actionsa custom separator and a custom terminator 0mp: //a custom separator// and //a custom terminator// | |||||
a custom separator string and a custom terminator: | |||||
.Bd -literal -offset indent | |||||
# seq -s "-->" -t "[end of list]\\n" 1 3 | |||||
1-->2-->3-->[end of list] | |||||
.Ed | |||||
.Pp | |||||
Generate a sequence from 1 to 2 (included) with an increment of 0.2 and | |||||
print the results with two digits after the decimal point (using a | |||||
.Xr printf 3 | |||||
Done Inline ActionsHow about
0mp: How about
> with an increment of 0.2 and print the results with two digits after the decimal… | |||||
Done Inline ActionsI rephrased the text that is much clearer now. However for the the printf(3)-like, I observe the expression printf(3) style is used before in the man page. Shouldn't we keep it like that for consistency? Also, how can I use .Xr printf 3 and have the -like joined to the previous word? I could only find an example in dialog.3, but it was in the form \fBprintf(3)\fP-like format): which looses the cross-reference. fernape: I rephrased the text that is much clearer now.
However for the the //printf(3)-like//, I… | |||||
Not Done Inline ActionsWorks for me! Thanks a lot! 0mp: Works for me! Thanks a lot! | |||||
style format): | |||||
.Bd -literal -offset indent | |||||
# seq -f %.2f 1 0.2 2 | |||||
1.00 | |||||
1.20 | |||||
1.40 | |||||
1.60 | |||||
1.80 | |||||
2.00 | |||||
.Ed | |||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr jot 1 , | .Xr jot 1 , | ||||
.Xr printf 1 , | .Xr printf 1 , | ||||
Context not available. | |||||
and was ported to | and was ported to | ||||
.Fx 9.0 . | .Fx 9.0 . | ||||
This command was based on the command of the same name in | This command was based on the command of the same name in | ||||
.Tn "Plan 9 from Bell Labs" | Plan 9 from Bell Labs and the GNU core utilities. | ||||
and the | The GNU | ||||
.Tn GNU | |||||
core utilities. | |||||
The | |||||
.Tn GNU | |||||
.Nm | .Nm | ||||
command first appeared in the 1.13 shell utilities release. | command first appeared in the 1.13 shell utilities release. | ||||
.Sh BUGS | .Sh BUGS | ||||
Context not available. |
I'd add "(including)" after the 3 to indicate that the last number provided is also part of the resulting output. You might also want to end the sentence with a colon (:).