|
|
1.1 root 1:
2:
3: from Command from
4:
5:
6:
7:
8: Generate list of numbers
9:
10: ffrroomm _s_t_a_r_t ttoo _s_t_o_p [ bbyy _i_n_c_r ]
11:
12: from prints a list of integers on the standard output, one per
13: line. It prints beginning with start, and then prints successive
14: numbers incrementing by incr (default, one) the previous number.
15: It continues until the generated value matches or exceeds stop.
16: Each of start, stop, and optional incr is a decimal integer with
17: an optional leading `-' sign.
18:
19: Typical uses of from include generating a file of numbers and
20: generating a loop index for the shell sh. The following example
21: creates special files for eight terminal ports:
22:
23:
24: for i in `from 0 to 7`
25: do
26: /etc/mknod /dev/tty3$i c 3 $i
27: done
28:
29:
30: ***** See Also *****
31:
32: commands, sh
33:
34: ***** Diagnostics *****
35:
36: from prints an error message if the generated list is empty.
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.