Generate a numeric sequence.
Section: Globbing and Brace Expansion
Sequence expansion
bash
bash
printf '%s
' {1..5}Explanation
Great for loops and quick test data.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Globbing and Brace Expansion