logo

cross-unix-documentation

documentation of similarities and (noteworthy) differencies between Unix systems git clone https://hacktivis.me/git/cross-unix-documentation.git

seq.1x (1787B)


  1. .\" This file is part of Cross Unix Documentation
  2. .\" Copyright © 2019-2020 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
  3. .\" SPDX-License-Identifier: CC-BY-4.0
  4. .Dd 2019-03-05
  5. .Dt SEQ 1x
  6. .Os
  7. .Sh PROLOG
  8. This manual page is part of
  9. .Lk https://hacktivis.me/git/cross-unix-documentation "Cross-Unix Documentation"
  10. 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.
  11. .Sh NAME
  12. .Nm seq
  13. .Nd print a sequence of numbers
  14. .Sh SYNOPSIS
  15. .Nm
  16. .Op Fl w
  17. .Op Fl f Ar format
  18. .Op Fl s Ar separator
  19. [first [steps]] last
  20. .Sh DESCRIPTION
  21. .Nm
  22. prints a sequence of numbers, one per line (default), from
  23. .Ar first
  24. (default 1), to near
  25. .Ar last
  26. as possible, in increments of
  27. .Ar steps
  28. (default 1). When
  29. .Ar first
  30. is larger than
  31. .Ar last ,
  32. the default
  33. .Ar step
  34. is -1.
  35. .Pp
  36. All numbers are interpreted as floating point.
  37. .Bl -tag -width Ds
  38. .It Fl f Ar format
  39. Use a
  40. .Xr printf 3
  41. style
  42. .Ar format
  43. to print each number.
  44. it can contain character escape sequences in backslash notation as defined in
  45. .St -ansiC-89 .
  46. The default is %g. This flag is absent in BusyBox.
  47. .It Fl s Ar separator
  48. Use
  49. .Ar separator
  50. to separate numbers, it can contain character escape sequences in backslash notation as defined in
  51. .St -ansiC-89 .
  52. The default is \en.
  53. .It Fl w
  54. equalize width by zero-padding
  55. .Sh HISTORY
  56. From
  57. .Nx
  58. manpage: The
  59. .Nm
  60. command first appeared in
  61. .At v8 .
  62. A
  63. .Nm
  64. command appeared in
  65. .Nx 3.0 .
  66. This command was based on the command of the same name in Plan 9 From Bell Labs and the GNU coreutils.
  67. The GNU
  68. .Nm
  69. command first appeared in the 1.13 shell utilities release.
  70. .Sh SOURCE
  71. .Nx 8.0 ,
  72. GNU coreutils 8.30, BusyBox 1.30.1.
  73. .Sh AUTHORS
  74. .An Haelwenn (lanodan) Monnier Aq Mt contact+c-u-d@hacktivis.me