nushell/docs/commands/seq.md
Justin Ma c0a1d18e3d
update #4455, regenerate commands' docs and update make_docs script (#4586)
* feat: update #4455, regenerate commands' docs

* chore: update make_docs script
2022-02-21 11:26:00 -06:00

802 B

title layout version
seq command 0.59.0

Print sequences of numbers.

Signature

> seq ...rest --separator --terminator --widths

Parameters

  • ...rest: sequence values
  • --separator {string}: separator character (defaults to \n)
  • --terminator {string}: terminator character (defaults to \n)
  • --widths: equalize widths of all numbers by padding with zeros

Examples

sequence 1 to 10 with newline separator

> seq 1 10

sequence 1.0 to 2.0 by 0.1s with newline separator

> seq 1.0 0.1 2.0

sequence 1 to 10 with pipe separator

> seq -s '|' 1 10

sequence 1 to 10 with pipe separator padded with 0

> seq -s '|' -w 1 10

sequence 1 to 10 with pipe separator padded by 2s

> seq -s ' | ' -w 1 2 10