| 1 |
greg |
1.1 |
.\" RCSid "$Id" |
| 2 |
|
|
.TH CNT 1 11/15/93 RADIANCE |
| 3 |
|
|
.SH NAME |
| 4 |
|
|
cnt - index counter |
| 5 |
|
|
.SH SYNOPSIS |
| 6 |
|
|
.B cnt |
| 7 |
|
|
N .. |
| 8 |
|
|
.SH DESCRIPTION |
| 9 |
|
|
.I Cnt |
| 10 |
|
|
counts from 0 to N-1, producing N lines of output. |
| 11 |
|
|
If multiple arguments are given, |
| 12 |
|
|
.I cnt |
| 13 |
|
|
produces a nested array of values where the final counter |
| 14 |
|
|
rotates fastest through its range. |
| 15 |
|
|
.I Cnt |
| 16 |
|
|
is most useful in conjunction with |
| 17 |
|
|
.I rcalc(1) |
| 18 |
|
|
to produce array values. |
| 19 |
|
|
.SH EXAMPLE |
| 20 |
|
|
To create a 3 by 5 array: |
| 21 |
|
|
.IP "" .2i |
| 22 |
|
|
cnt 3 5 |
| 23 |
|
|
.SH AUTHOR |
| 24 |
|
|
Greg Ward |
| 25 |
|
|
.SH "SEE ALSO" |
| 26 |
|
|
lam(1), neat(1), rcalc(1), total(1) |