SEQ(1)
๐ seq(1) โ bestie's guide to printing number sequences ๐
okay so. you opened the manual for seq, from the User Commands corner of your system (that's section 1, iykyk), and honestly? you're about to have the best time printing numbers. this is the tool for "give me a list of numbers and make it pretty." let's go ๐
โจ NAME โจ
seq โ print a sequence of numbers. that's it. that's the whole job. and she eats every single time. ๐
๐ SYNOPSIS ๐
seq [OPTION]... LAST
seq [OPTION]... FIRST LAST
seq [OPTION]... FIRST INCREMENT LAST
three ways in, bestie. one number, two numbers, or three. pick your fighter. ๐
๐ธ DESCRIPTION ๐ธ
Print numbers from FIRST to LAST, in steps of INCREMENT. literally that's the vibe. you give her a start, a jump size, and an end, and she hands you back the whole little parade of numbers. โจ
๐ก heads up: mandatory arguments to long options are mandatory for short options too. so if the long version needs a value, the short version does too. no exceptions, no cap.
๐ซถ the options (yes, every single one)
-f,--format=FORMATโ useprintfstyle floating-point FORMAT. so you can style your numbers however you want. ๐-s,--separator=STRINGโ use STRING to separate numbers (default:\n). default is a newline, so one number per line, but you can change it to whatever your heart desires. ๐ธ-w,--equal-widthโ equalize width by padding with leading zeroes. so everything lines up all neat and tidy. iconic. โจ--helpโ display this help and exit. your girl is helpful. ๐ฅฐ--versionโ output version information and exit. ๐
๐ง the rules of the game (read these, fr fr)
- If FIRST or INCREMENT is omitted, it defaults to
1. - That is, an omitted INCREMENT defaults to
1even when LAST is smaller than FIRST. yes really. it still defaults to1. ๐ - The sequence of numbers ends when the sum of the current number and INCREMENT would become greater than LAST. so she doesn't overshoot. she's polite like that. ๐
- FIRST, INCREMENT, and LAST are interpreted as floating point values.
- INCREMENT is usually positive if FIRST is smaller than LAST, and usually negative if FIRST is greater than LAST. (usually! not always! she's flexible.)
- > โ ๏ธ INCREMENT must not be
0. like, zero steps? that's not a sequence, that's a situation. also: none of FIRST, INCREMENT and LAST may be NaN. hard no on NaN. - FORMAT must be suitable for printing one argument of type
double. it defaults to%.PRECfif FIRST, INCREMENT, and LAST are all fixed point decimal numbers with maximum precision PREC, and to%gotherwise. so she picks a sensible default for you. thoughtful queen. ๐
๐ AUTHOR ๐
Written by Ulrich Drepper. thank you for your service, legend. ๐ซก๐
๐ญ REPORTING BUGS ๐ญ
found a bug? spill it here:
- Report bugs to: <bug-coreutils@gnu.org>.
- Report any translation bugs to: <https://translationproject.org/team/>.
- GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
- General help using GNU software: <https://www.gnu.org/gethelp/>
๐ฅ COPYRIGHT ๐ฅ
Copyright ยฉ 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. (like, literally none. she's free but she's not liable, yk?)
๐ SEE ALSO ๐
- Full documentation <https://www.gnu.org/software/coreutils/seq>
- or available locally via:
info '(coreutils) seq invocation'
and that's the whole page, bestie!! ๐ this was GNU coreutils 9.12, dated September 2026, and it lives in section 1 of your manual โ so the next time you need a list of numbers, you know exactly who to call. go print a sequence and slay. ๐ โจ๐ฆ
๐ฆ where this page comes from
- arch rolling: coreutils 9.12-2 ยท GPL-3.0-or-later AND GFDL-1.3-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms