tldr/pages/common/seq.md

212 B

seq

Output a sequence of numbers to stdout.

  • Sequence from 1 to 10:

seq 10

  • Every 3rd number from 5 to 20:

seq 5 3 20

  • Separate the output with a space instead of a newline:

seq -s " " 5 3 20