seq
The command that prints a sequence of numbers, one per line, such as seq 1 5.
In more detail
It is a quick source of test input for pipelines. In bash, brace expansion such as {1..5} does the same without starting a program.
Example
seq 1 2000000 | head -3Related terms
- brace expansion — The first expansion, which turns a pattern like {a,b} or {1..3} into several words, whether or not matching files exist.
- head — The command that prints the first lines of its input, ten by default or as many as -n says.
Taught in
- Pipelines, tee And Process Substitution — Bash Scripting & Command Line Automation
- Filters: Twenty Small Tools — LPIC-1 Linux Administrator (101-500 and 102-500) Exam Prep