seq.1x (1789B)
- .\" This file is part of Cross Unix Documentation
- .\" Copyright © 2019-2020 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
- .\" SPDX-License-Identifier: CC-BY-4.0
- .Dd 2019-03-05
- .Dt SEQ 1x
- .Os
- .Sh PROLOG
- This manual page is part of
- .Lk https://hacktivis.me/git/cross-unix-documentation "Cross-Unix Documentation"
- which is an attempt to provide documentation of similarities and (noteworthy) differencies between Unix-like systems.
- To be used as an addition to the POSIX standard.
- .Sh NAME
- .Nm seq
- .Nd print a sequence of numbers
- .Sh SYNOPSIS
- .Nm
- .Op Fl w
- .Op Fl f Ar format
- .Op Fl s Ar separator
- [first [steps]] last
- .Sh DESCRIPTION
- .Nm
- prints a sequence of numbers, one per line (default), from
- .Ar first
- (default 1), to near
- .Ar last
- as possible, in increments of
- .Ar steps
- (default 1). When
- .Ar first
- is larger than
- .Ar last ,
- the default
- .Ar step
- is -1.
- .Pp
- All numbers are interpreted as floating point.
- .Bl -tag -width Ds
- .It Fl f Ar format
- Use a
- .Xr printf 3
- style
- .Ar format
- to print each number.
- it can contain character escape sequences in backslash notation as defined in
- .St -ansiC-89 .
- The default is %g. This flag is absent in BusyBox.
- .It Fl s Ar separator
- Use
- .Ar separator
- to separate numbers, it can contain character escape sequences in backslash notation as defined in
- .St -ansiC-89 .
- The default is \en.
- .It Fl w
- equalize width by zero-padding
- .El
- .Sh HISTORY
- From
- .Nx
- manpage: The
- .Nm
- command first appeared in
- .At v8 .
- A
- .Nm
- command appeared in
- .Nx 3.0 .
- This command was based on the command of the same name in Plan 9 From Bell Labs and the GNU coreutils.
- The GNU
- .Nm
- command first appeared in the 1.13 shell utilities release.
- .Sh SOURCE
- .Nx 8.0 ,
- GNU coreutils 8.30, BusyBox 1.30.1.
- .Sh AUTHORS
- .An Haelwenn (lanodan) Monnier Aq Mt contact+c-u-d@hacktivis.me