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 โ€” use printf style 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 1 even when LAST is smaller than FIRST. yes really. it still defaults to 1. ๐Ÿ˜Œ
  • 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 %.PRECf if FIRST, INCREMENT, and LAST are all fixed point decimal numbers with maximum precision PREC, and to %g otherwise. 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:


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 ๐ŸŒˆ


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