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 (1789B)


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