nushell/docs/commands/seq.md
JT bff81f24aa
Autogenerate missing docs (#3514)
* Autogenerate missing docs

* Update ansi.md

* Rename question mark command docs

* Delete empty?.md
2021-05-30 12:57:04 +12:00

861 B

seq

Print sequences of numbers.

Usage

> seq ...args <subcommand> {flags} 

Subcommands

  • seq date - print sequences of dates

Parameters

  • ...args: sequence values

Flags

  • -h, --help: Display this help message
  • -s, --separator : separator character (defaults to \n)
  • -t, --terminator : terminator character (defaults to \n)
  • -w, --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