seq
text processingLinux/Unix
The seq command is one of the most frequently used commands in Linux/Unix-like operating systems. seq Print a sequence of numbers
Quick Reference
Command Name:
seq
Category:
text processing
Platform:
Linux/Unix
Basic Usage:
seq [options] [arguments]
Common Use Cases
Syntax
seq [options] [first [increment]] last
Options
Option | Description |
---|---|
-f, --format=FORMAT |
Use printf style floating-point FORMAT |
-s, --separator=STRING |
Use STRING to separate numbers (default: \n) |
-w, --equal-width |
Equalize width by padding with leading zeros |
--help |
Display help information and exit |
--version |
Output version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the seq
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
seq 5