seq: Print numeric sequences

Print a sequence of numbers to standard output
Syntax
seq [options]... [FIRST [STEP]] LAST...

Options

-f FORMAT
--format=FORMAT
Print all numbers using FORMAT; default `%g?. FORMAT must contain
exactly one of the standarding float output formats `%e?, `%f?, or
`%g?.

-s STRING
--separator=STRING
Separate numbers with STRING; default is a newline. The output
always terminates with a newline.

-w
--equal-width
Print all numbers with the same width, by padding with leading
zeroes. (To have other kinds of padding, use `--format?).
`seq? prints the numbers from FIRST to LAST by STEP.

By default, FIRST and STEP are both 1, and each number is printed on its own
line. All numbers can be reals, not just integers.
Examples
Produce a sequence of numbers from 1 to 100
$ seq 100
You can also produce a sequence with the for command
for ((myseq=0; myseq<50; myseq ))
do
echo The sequence is ${myseq}
done
fi

“The idea of a Being who interferes with the sequence of events in the world is absolutely impossible” - Albert Einstein
Tags
Comments
Write the first comment
Leave a trace
Name *
Email *
Website
Anti SPAM * Code (2 + 9) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 07.03.2009
Views: 2046
Item date: 09.03.2009
Views: 1466
Item date: 24.08.2009
Views: 548
Item date: 23.06.2010
Views: 55
Item date: 25.09.2009
Views: 275
Item date: 14.05.2009
Views: 1405
Item date: 27.09.2009
Views: 1137
Item date: 06.02.2009
Views: 1538
Item date: 07.03.2009
Views: 1315
Item date: 14.07.2010
Views: 1509