2015-10-08 15:15:08 +00:00
|
|
|
.Dd 2015-10-08
|
2015-01-31 13:20:02 +00:00
|
|
|
.Dt SEQ 1
|
2015-01-31 19:37:03 +00:00
|
|
|
.Os sbase
|
2015-01-30 21:39:41 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm seq
|
|
|
|
.Nd print a sequence of numbers
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl w
|
|
|
|
.Op Fl f Ar fmt
|
2015-03-20 15:04:23 +00:00
|
|
|
.Op Fl s Ar sep
|
|
|
|
.Op Ar startnum Op Ar step
|
|
|
|
.Ar endnum
|
2015-01-30 21:39:41 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2015-03-20 15:04:23 +00:00
|
|
|
writes a sequence of numbers from
|
|
|
|
.Ar startnum
|
2015-02-01 19:52:28 +00:00
|
|
|
(default: 1) to
|
2015-03-20 15:04:23 +00:00
|
|
|
.Ar endnum
|
2012-05-10 18:20:16 +00:00
|
|
|
in
|
2015-01-30 21:39:41 +00:00
|
|
|
.Ar step
|
2015-03-20 15:04:23 +00:00
|
|
|
intervals (default: 1)
|
|
|
|
to stdout.
|
2015-01-30 21:39:41 +00:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
2015-03-20 15:04:23 +00:00
|
|
|
.It Fl f Ar fmt
|
|
|
|
Use
|
|
|
|
.Ar fmt
|
|
|
|
as the output line format according to
|
2015-01-30 21:39:41 +00:00
|
|
|
.Xr printf 3 .
|
2015-03-20 15:04:23 +00:00
|
|
|
.It Fl s Ar sep
|
|
|
|
Print
|
|
|
|
.Ar sep
|
2020-03-01 22:37:31 +00:00
|
|
|
between output lines.
|
|
|
|
The default is "\en".
|
2015-01-30 21:39:41 +00:00
|
|
|
.It Fl w
|
2015-03-20 15:04:23 +00:00
|
|
|
Print out lines in equal width.
|
2015-01-30 21:39:41 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr printf 3
|