Seq (Unix)
Seq (Unix) is an encyclopedia record, sourced from en.wikipedia.org, last updated 2025-08-11, source revision https://en.wikipedia.org/w/index.php?oldid=1305276369. On Unix-like computer systems, seq is a utility for generating a sequence of numbers. Remove file1 through file17: for n in `seq 17` do rm "file$n" done seq had additional options for controlling the start (not just end) of the numeric sequence, its increment (a floating point number), and the formatting of the number. GNU seq changed the name and meaning of the format option (from to ) and added an option to control the separator between the numbers ( , defaults to a newline). With other alternatives available (e.g., expr), and with more recent shells adding builtin numeric iteration, seq is less commonly used today. In the modern Linux shell, bash, the above example can be alternatively... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
On Unix-like computer systems, seq is a utility for generating a sequence of numbers. Remove file1 through file17: for n in `seq 17` do rm "file$n" done seq had additional options for controlling the start (not just end) of the numeric sequence, its increment (a floating point number), and the formatting of the number. GNU seq changed the name and meaning of the format option (from to ) and added an option to control the separator between the numbers ( , defaults to a newline). With other alternatives available (e.g., expr), and with more recent shells adding builtin numeric iteration, seq is less commonly used today. In the modern Linux shell, bash, the above example can be alternatively written as: for n in {1..17} do rm "file$n" done and more efficiently, without actually generating the whole sequence in advance, as for ((n=1; n ==References== ==External links==
Cite this
"Seq (Unix)". 1754875189. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1305276369 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy