SEQ(1)
π SEQ(1) β like, the seq manual page, bestie
okay so this is seq, and it lives in the User Contributed Perl Documentation section of the manual, which is a whole vibe. it prints numbers. that's it. that's the gig. and honestly? iconic. π
β¨ NAME β¨
seq β print a numeric sequence. yes, that's the whole name. short, sweet, main character energy. π
πΈ SYNOPSIS πΈ
seq [OPTIONS] LAST
seq [OPTIONS] FIRST LAST
seq [OPTIONS] FIRST INCR LAST
three whole ways to run it, and every single one of them slays. pick your fighter. β¨
π¦ DESCRIPTION π¦
okay bestie, so here's the tea: seq writes a list of numbers to standard output, and it separates them with a newline character. so far so chill. π«Ά
if you only give it LAST, the sequence starts from 1 and the increment is 1. and here's the fun part β LAST can be negative, in which case the sequence starts from 1 with an increment of -1. it's giving "we contain multitudes." π
when you specify only FIRST and LAST, the increment will be either 1 or -1 based on whether FIRST is greater. and ngl the inclusivity is real β sequences are inclusive of FIRST and LAST, so seq 3 3 results in the sequence 3. one single number. a solo act. a whole meal for one. π
when you need an increment other than 1 or -1, that's your cue to use the INCR argument. zero is not a valid increment β do not try it, do not pass go, do not collect two hundred dollars. π positive numbers may optionally include a '+' prefix (fancy, we love a little flourish β¨). and floating point numbers may be entered in decimal notation (e.g. 0.2223). periodt.
π§ OPTIONS π§
the following options are available:
-f FORMATβ set aprintfformat specifier instead of the default'%g'. basically you get to dress your numbers up however you want. π-s STRINGβ separate each number withSTRINGinstead of the newline character. custom separator, custom vibe, we love to see it. π
π BUGS π
Corrupt printf format specifiers may be entered.
yeah. that's it. that's the whole bug section. no cap, it's one line and it's lowkey sending me π β the door is unlocked, the door is open, please be careful out there with your format strings. π
π AUTHOR π
Written by Michael Mikonos. we stan. π
β COPYRIGHT β
Copyright (c) 2023 Michael Mikonos.
This code is licensed under the Artistic License 2.
okay that's the whole page, you're officially a seq expert now, go forth and print numbers responsibly bestie π¦β¨π
oh and also β this page came from perl v5.42.2, dated 2026-02-15, so shoutout to that version and that date, mwah π
π¦ where this page comes from
- alpine 3.24: perl-power-tools-doc 1.053-r1 Β· GPL-2.0-or-later AND Artistic-1.0-Perl AND Artistic-2.0 AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms