www.delorie.com/gnu/docs/sh-utils/sh-utils_77.html   search  
 
Buy GNU books!


GNU shell utilities

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

13.2 seq: Print numeric sequences

seq prints a sequence of numbers to standard output. Synopses:

 
seq [option]... [first [step]] last...

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.

The program accepts the following options. Also see 2. Common 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').


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 2003   by The Free Software Foundation     Updated Jun 2003  

Please take a moment to fill out this visitor survey
You can help support this site by visiting the advertisers that sponsor it! (only once each, though)