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