![](https://seccdn.libravatar.org/avatar/e0854175dfba18e9adc5a9e99f843401.jpg?s=120&d=mm&r=g)
On Sun, 29 Mar 2009, David Haller wrote:-
Example: for i in $(seq 1 120); do
For counting up or down by one, there's no need to use seq. Bash can use ranges using {$start..$end} where $start and $end can be positive or negative numbers, or letters[0]. The above can be replaced by: for i in {1..120}; do [0] Using letters, keep and eye on the case. While {A..Z} and {a..z} will list the letters from A-Z and a-z, {A..z} list both upper and lower case letters as well as the characters [ ] ^ _ ` Regards, David Bolt -- Team Acorn: http://www.distributed.net/ OGR-NG @ ~100Mnodes RC5-72 @ ~1Mkeys/s openSUSE 10.3 32b | openSUSE 11.0 32b | | openSUSE 10.3 64b | openSUSE 11.0 64b | openSUSE 11.1 64b | openSUSE 10.3 PPC | RISC OS 3.6 | RISC OS 3.11 | TOS 4.02 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org